diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 14:49:00 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 14:49:00 +0000 |
commit | 0f746aa5ff0acfd99af10b83b02d2f62311168c4 (patch) | |
tree | b3ac279a1df956d7f2fd0b4d63050846e8c620f3 /lib | |
parent | d7f792c6cf5f9dab870d0205de1a174863ca6a12 (diff) |
Show error-message clearly on connection-failure.
This was failing because '$ERROR_INFO' is only available if
you
require 'English'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/custodian/protocoltest/tcp.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/custodian/protocoltest/tcp.rb b/lib/custodian/protocoltest/tcp.rb index fc95dd3..1747f3f 100644 --- a/lib/custodian/protocoltest/tcp.rb +++ b/lib/custodian/protocoltest/tcp.rb @@ -3,7 +3,7 @@ require 'custodian/settings' require 'custodian/testfactory' require 'socket' require 'timeout' - +require 'English' # # The TCP-protocol test. @@ -309,7 +309,7 @@ module Custodian return false end rescue - @error = "Exception connecting to host #{host}:#{port} - #{$ERROR_INFO}" + @error = "Exception connecting to host:#{host} [port:#{port}] - #{$ERROR_INFO}" return false end end |