Fix wording of upload permission error

SCPPermissionDenied expects a path, and this is most likely the
destination (to) and not source (from).

[#2804]
This commit is contained in:
Justin Campbell 2014-01-28 13:40:13 -05:00
parent 8cc7d00314
commit a633b7343a
1 changed files with 1 additions and 1 deletions

View File

@ -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