lib/zine/uploader_sftp.rb in zine-0.6.0 vs lib/zine/uploader_sftp.rb in zine-0.7.0
- old
+ new
@@ -24,10 +24,10 @@
def upload
delete
deploy
rescue Errno::ENETUNREACH
puts Rainbow("Unable to connect to #{upload_options['host']}").red
- rescue Net::SSH::AuthenticationFailed
+ rescue Net::SSH::AuthenticationFailed, NameError
puts Rainbow("Authentication failed for #{upload_options['host']}").red
puts 'Check your credential file, and maybe run ssh-add?'
end
private