summaryrefslogtreecommitdiff
path: root/lib/custodian
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 14:49:00 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 14:49:00 +0000
commit0f746aa5ff0acfd99af10b83b02d2f62311168c4 (patch)
treeb3ac279a1df956d7f2fd0b4d63050846e8c620f3 /lib/custodian
parentd7f792c6cf5f9dab870d0205de1a174863ca6a12 (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/custodian')
-rw-r--r--lib/custodian/protocoltest/tcp.rb4
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