less verbose about emails

This commit is contained in:
Maxwell Salzberg 2011-10-31 17:29:00 -07:00
parent eaca7b98fe
commit 0a909d6475

View file

@ -42,7 +42,7 @@ module Messagebus
@client.add_message(m) @client.add_message(m)
status = @client.flush status = @client.flush
rescue Exception => e rescue Exception => e
raise "Message bus error with email #{m.inspect}" raise "Message bus error with email #{e.message}: #{m[:toEmail]}, #{m[:fromName]}, #{m[:fromEmail]}"
end end
end end
if status[:failureCount] && status[:failureCount] > 0 if status[:failureCount] && status[:failureCount] > 0