I can't seem to catch errors and deal with them and I am also not sure
how to actually test that I have valid connections to a beanstalkd
service.

when I don't have a beanstalkd instance running locally, this code:

require 'beanstalk-client'
begin
  BEANSTALK_QUEUE = Beanstalk::Pool.new(['0.0.0.0:11300'])
  puts "#{'!' * 10} #{BEANSTALK_QUEUE.stats}"
rescue
   puts "you caught an error"
end

Produces the following output:

Errno::ECONNREFUSED: Connection refused - connect(2)
Errno::ECONNREFUSED: Connection refused - connect(2)

How can I get at those reported errors and do something about them?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/beanstalk-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to