Skip to content

Instantly share code, notes, and snippets.

@kennethkalmer
Created June 23, 2011 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennethkalmer/4d02fd7404bc94e1a7d6 to your computer and use it in GitHub Desktop.
Save kennethkalmer/4d02fd7404bc94e1a7d6 to your computer and use it in GitHub Desktop.
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