lib/gearman/client.rb in gearman-ruby-4.0.4 vs lib/gearman/client.rb in gearman-ruby-4.0.5

- old
+ new

@@ -96,10 +96,10 @@ message = "Received #{type.to_s} when we were expecting JOB_CREATED" logger.error message raise ProtocolError, message end rescue NetworkError - message = "Network error on read from #{hostport} while adding job, marking server bad" + message = "Network error on read from #{connection.hostport} while adding job, marking server bad" logger.error message raise NetworkError, message rescue NoJobServersError logger.error "No servers available." raise NoJobServersError