Guest User

Untitled

a guest
Jan 19th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. diff --git a/lib/ruote-amqp/receiver.rb b/lib/ruote-amqp/receiver.rb
  2. index 2d96a98..b8c7f57 100644
  3. --- a/lib/ruote-amqp/receiver.rb
  4. +++ b/lib/ruote-amqp/receiver.rb
  5. @@ -111,6 +111,12 @@ module RuoteAMQP
  6.  
  7. return unless item.is_a?(Hash)
  8.  
  9. + if item.has_key('fields') and item['fields'].has_key('__error__')
  10. + @context.error_handler.action_handle('dispatch', item,
  11. + ReceiveError.new(msg['fields']['__error__']))
  12. + return
  13. + end
  14. +
  15. not_li = ! item.has_key?('definition')
Add Comment
Please, Sign In to add comment