diff --git a/plugins/communicators/ssh/communicator.rb b/plugins/communicators/ssh/communicator.rb index b5aa9a274..01764b9a0 100644 --- a/plugins/communicators/ssh/communicator.rb +++ b/plugins/communicators/ssh/communicator.rb @@ -86,16 +86,11 @@ module VagrantPlugins rescue Vagrant::Errors::SSHKeyTypeNotSupported raise rescue Vagrant::Errors::SSHKeyBadOwner - # TODO: It would be more polite to check for key ownership/permissions before starting the machine - # so that this exception would never happen (currently it may happen) raise rescue Vagrant::Errors::SSHKeyBadPermissions - # TODO: It would be more polite to check for key ownership/permissions before starting the machine - # so that this exception would never happen (currently it may happen) - raise + raise rescue Vagrant::Errors::VagrantError => e # Ignore it, SSH is not ready, some other error. - message = e.message end # If we have a message to show, then show it. We don't show