-
-
Save kennethkalmer/4d02fd7404bc94e1a7d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/ruote-amqp/participant.rb b/lib/ruote-amqp/participant.rb | |
index 25bf604..40456fd 100644 | |
--- a/lib/ruote-amqp/participant.rb | |
+++ b/lib/ruote-amqp/participant.rb | |
@@ -158,7 +158,9 @@ module RuoteAMQP | |
else | |
- q.publish(encode_workitem(workitem), opts) | |
+ wi = encode_workitem(workitem) | |
+ raise ArgumentError, "encoded workitem is nil" if wi.nil? | |
+ q.publish(wi, opts) | |
end | |
reply_to_engine(workitem) if forget |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment