summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2016-12-19 13:51:19 +0200
committerSteve Kemp <steve@steve.org.uk>2016-12-19 13:51:19 +0200
commit8e81649c49da9b0bd66c50e434f54bbd493d8e16 (patch)
treede4f39adb8f13e92710e674a92d36a0b3fde3219
parent8cb39f01cb7612367dc91cc6af76f2d56696d05a (diff)
Show host/port when TCP timeout occurs.
This is a failure case which is not 100% clear. This closes #4.
-rw-r--r--lib/custodian/protocoltest/tcp.rb2
1 files changed, 1 insertions, 1 deletions
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'