lib/drbman/host_machine.rb in royw-drbman-0.0.2 vs lib/drbman/host_machine.rb in royw-drbman-0.0.3
- old
+ new
@@ -71,9 +71,11 @@
# when ran in parallel.
HostMachine.connection_mutex.synchronize do
connect
end
yield self
+ rescue Net::SSH::AuthenticationFailed => e
+ @logger.error { "Authentication Failed" }
rescue Exception => e
@logger.error { e }
@logger.error { e.backtrace.join("\n") }
raise e
ensure