summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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 3fd4129..d0da3a3 100644
--- a/lib/custodian/protocoltest/tcp.rb
+++ b/lib/custodian/protocoltest/tcp.rb
@@ -309,7 +309,7 @@ module Custodian
return false
end
rescue
- @error = "Exception connecting to host #{host}:#{port} - #{$!}"
+ @error = "Exception connecting to host #{host}:#{port} - #{$ERROR_INFO}"
return false
end
end