diff --git a/lib/vagrant/ssh.rb b/lib/vagrant/ssh.rb index 025f98390..c4934fdb5 100644 --- a/lib/vagrant/ssh.rb +++ b/lib/vagrant/ssh.rb @@ -104,7 +104,7 @@ module Vagrant scp.upload!(from, to) end end - rescue Net::SCP::Error + rescue Net::SCP::Error => e # If we get the exit code of 127, then this means SCP is unavailable. raise Errors::SCPUnavailable if e.message =~ /\(127\)/