Fix specs, handle_exception calls

This commit is contained in:
riking
2014-06-30 15:16:16 -07:00
parent eb14983dfa
commit 07cedb7946
2 changed files with 5 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ module Jobs
client_message = RejectionMailer.send_rejection(message.from, message.body, message.to, message_template)
Email::Sender.new(client_message, message_template).send
else
Discourse.handle_exception(e, { context: "incoming email", mail: mail_string })
Discourse.handle_exception(e, { context: { code: "unknown error for incoming email", mail: mail_string} })
end
ensure
mail.delete
@@ -70,7 +70,7 @@ module Jobs
pop.finish
end
rescue Net::POPAuthenticationError => e
Discourse.handle_exception(e, { context: "signing in for incoming email" })
Discourse.handle_exception(e, { context: { code: "signing in for incoming email" } })
end
end