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 | 468364d410b16658382050f9cecc3da976ceedad (patch) | |
| tree | 9cae77713f806d237249d365b0c88fdb7be4bad4 /lib/custodian/protocoltest | |
| parent | 41c6ed7b50603f5232cfe3a59a704e84c0f97d79 (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/protocoltest')
| -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 | 
