From b1439ec8f056365b712724b252cc324cbe745da7 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Thu, 27 Mar 2008 22:26:26 -0600 Subject: rescue authentication failures and tack on the host name that failed, for easier troubleshooting --- lib/net/ssh/multi/session.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/net/ssh/multi/session.rb b/lib/net/ssh/multi/session.rb index 0a5c73e..b596b8f 100644 --- a/lib/net/ssh/multi/session.rb +++ b/lib/net/ssh/multi/session.rb @@ -185,6 +185,9 @@ module Net; module SSH; module Multi connection[:host] = host @mutex.synchronize { @connections.push(connection) } return connection + rescue Net::SSH::AuthenticationFailed => error + error.message << "@#{host}" + raise end end end; end; end \ No newline at end of file -- cgit v1.2.1