examples/worker_exception.rb in xing-gearman-ruby-1.1.0 vs examples/worker_exception.rb in xing-gearman-ruby-1.2.0

- old
+ new

@@ -7,8 +7,8 @@ w = Gearman::Worker.new(servers) # Add a handler for a "sleep" function that takes a single argument, the # number of seconds to sleep before reporting success. w.add_ability('fail_with_exception') do |data,job| - raise Exception.new("fooexception") + raise Exception.new("Exception in worker (args: #{data.inspect})") end loop { w.work }