From a633b7343a1292b18f529a00c7094dbd450e5e4d Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Tue, 28 Jan 2014 13:40:13 -0500 Subject: [PATCH] Fix wording of upload permission error SCPPermissionDenied expects a path, and this is most likely the destination (to) and not source (from). [#2804] --- plugins/communicators/ssh/communicator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/communicators/ssh/communicator.rb b/plugins/communicators/ssh/communicator.rb index a239b67ab..b86081850 100644 --- a/plugins/communicators/ssh/communicator.rb +++ b/plugins/communicators/ssh/communicator.rb @@ -163,7 +163,7 @@ module VagrantPlugins # Otherwise, it is a permission denied, so let's raise a proper # exception - raise Vagrant::Errors::SCPPermissionDenied, :path => from.to_s + raise Vagrant::Errors::SCPPermissionDenied, :path => to.to_s end protected