do a dumb thing to get better understanding of message bus errors
This commit is contained in:
parent
9cadb99f8a
commit
48e3e34cb1
1 changed files with 5 additions and 1 deletions
|
|
@ -38,7 +38,11 @@ module Messagebus
|
|||
m[:htmlBody] = message.body.to_s
|
||||
end
|
||||
|
||||
@client.add_message(m)
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue