This commit is contained in:
riking 2014-06-23 17:48:51 -07:00
parent 8b5d2b835a
commit 222db71dd7
2 changed files with 4 additions and 1 deletions

View File

@ -40,7 +40,7 @@ module Jobs
when ActiveRecord::Rollback
message_template = :email_reject_post_error
else
nil
message_template = nil
end
if message_template
@ -51,6 +51,7 @@ module Jobs
Rails.logger.error e
# If not known type, inform admins about the error
# (Add to above case with a good error message!)
data = { limit_once_per: false, message_params: { from: message.from, source: message.body, error: "#{e.message}\n\n#{e.backtrace.join("\n")}" }}
GroupMessage.create(Group[:admins].name, :email_error_notification, data)
end

View File

@ -1351,6 +1351,8 @@ en:
The Markdown could not be processed.
%{error}
email_reject_reply_key:
subject_template: "Message rejected: Bad Reply Key"
text_body_template: |