From 90070510d4b3913e3f18e05e57c9b5a3170adde5 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 12:36:53 +0000 Subject: Use long-names Instead of "$0" use $PROGRAM_NAME, instead of $! use "$LOAD_PATH". This is more explicit and less-magic. Flagged by rubocop --- lib/custodian/protocoltest/tcp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.1