From 0f746aa5ff0acfd99af10b83b02d2f62311168c4 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 14:49:00 +0000 Subject: Show error-message clearly on connection-failure. This was failing because '$ERROR_INFO' is only available if you require 'English' --- lib/custodian/protocoltest/tcp.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/custodian') 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 -- cgit v1.2.1