Permalink
Browse files

enqueue gives the standard help message when beanstalkd is not available

  • Loading branch information...
1 parent f078006 commit 6a8700683425dfbf625830548d20bf5ab00f08d5 @adamwiggins adamwiggins committed Jul 5, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/stalker.rb
View
@@ -8,6 +8,8 @@ module Stalker
def enqueue(job, args={})
beanstalk.use job
beanstalk.put [ job, args ].to_json
+ rescue Beanstalk::NotConnected => e
+ failed_connection(e)
end
def job(j, &block)

0 comments on commit 6a87006

Please sign in to comment.