diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 12:36:53 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 12:36:53 +0000 |
commit | 0e158a3b400c324e35e0617d04508f375a86c633 (patch) | |
tree | 863748360ca739d476956eaded84f3bd134dbe7e /lib/custodian/protocoltest/tcp.rb | |
parent | a763bc51e8cee9a1ab972e39616275f527192454 (diff) |
Use long-names
Instead of "$0" use $PROGRAM_NAME, instead of $! use "$LOAD_PATH". This
is more explicit and less-magic.
Flagged by rubocop
Diffstat (limited to 'lib/custodian/protocoltest/tcp.rb')
-rw-r--r-- | lib/custodian/protocoltest/tcp.rb | 2 |
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 |