lib/bunny/exceptions.rb in bunny-1.5.0.pre1 vs lib/bunny/exceptions.rb in bunny-1.5.0.pre2

- old
+ new

@@ -63,10 +63,10 @@ # Raised when TCP connection to RabbitMQ fails because of an unresolved # hostname, connectivity problem, etc class TCPConnectionFailed < Exception attr_reader :hostname, :port - def initialize(e, hostname, port) + def initialize(e, hostname=nil, port=nil) m = case e when String then e when Exception then e.message