From 8e81649c49da9b0bd66c50e434f54bbd493d8e16 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 19 Dec 2016 13:51:19 +0200 Subject: Show host/port when TCP timeout occurs. This is a failure case which is not 100% clear. This closes #4. --- lib/custodian/protocoltest/tcp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/custodian/protocoltest/tcp.rb b/lib/custodian/protocoltest/tcp.rb index 0ab4ff6..0081a18 100644 --- a/lib/custodian/protocoltest/tcp.rb +++ b/lib/custodian/protocoltest/tcp.rb @@ -301,7 +301,7 @@ module Custodian end end rescue Timeout::Error => e - @error = "TIMEOUT: #{e}" + @error = "Timed out connecting to #{host}:#{port} - #{e}" return false end @error = 'Misc failure' -- cgit v1.2.1