do a dumb thing to get better understanding of message bus errors

This commit is contained in:
Maxwell Salzberg 2011-10-31 16:52:33 -07:00
parent 9cadb99f8a
commit 48e3e34cb1

View file

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