Permalink
Browse files

Fix for not including enqueue message arg

  • Loading branch information...
1 parent 9cd85b8 commit 63b83be68cf8940222427ff9d29caa9b95a76da0 Craig Krigsman committed Oct 7, 2009
Showing with 5 additions and 1 deletion.
  1. +1 −1 TODO.txt
  2. +4 −0 bin/amqp-enqueue
View
@@ -1,7 +1,7 @@
[x] fix amqp-enqueue message count
[x] detect commandline ARGV when no queue is specified bring up help
[x] amqp-stat hangs when no queue specified
-[o] amqp-enqueue inspect error when message not specified
+[x] amqp-enqueue inspect error when message not specified
[o] amqp-dequeue hangs on exit
[o] setup.rb seems to install command.rb in wrong location
[o] gem create
View
@@ -18,6 +18,10 @@ class EnqueueCommand < AmqpUtils::Command
def execute
@queue = ARGV[0]
@message = ARGV[1]
+ unless @message
+ puts 'You need to include message'
+ exit 1
+ end
publisher = EM.spawn do |queue, message, messages, options|
if messages > 0

0 comments on commit 63b83be

Please sign in to comment.