summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@idaemons.org>2009-11-10 11:12:06 +0800
committerDelano Mandelbaum <delano.mandelbaum@gmail.com>2009-11-11 03:31:24 +0800
commitbac04895137db2f64b8a57570baf33da3fff4d6f (patch)
tree41ba237165950288b2ec3adefcc1bf7cda522a46
parent6d09a25a8109972acbc910b532647cbc382ff7f3 (diff)
downloadnet-ssh-bac04895137db2f64b8a57570baf33da3fff4d6f.tar.gz
Do not put a command line twice in error messages.
-rw-r--r--lib/net/ssh/proxy/command.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/ssh/proxy/command.rb b/lib/net/ssh/proxy/command.rb
index c22ad01..2e6098e 100644
--- a/lib/net/ssh/proxy/command.rb
+++ b/lib/net/ssh/proxy/command.rb
@@ -50,10 +50,10 @@ module Net; module SSH; module Proxy
io = IO.popen(command_line, "r+")
if result = Net::SSH::Compat.io_select([io], nil, [io], 60)
if result.last.any?
- raise ConnectError, "command failed: #{command_line}"
+ raise "command failed"
end
else
- raise ConnectError, "command timed out: #{command_line}"
+ raise "command timed out"
end
rescue => e
raise ConnectError, "#{e}: #{command_line}"