communicators/ssh: better error message

This commit is contained in:
Mitchell Hashimoto 2014-02-03 12:09:13 +01:00
parent c1e18325ca
commit 3c10bf7721
2 changed files with 8 additions and 4 deletions

View File

@ -163,7 +163,9 @@ module VagrantPlugins
# Otherwise, it is a permission denied, so let's raise a proper # Otherwise, it is a permission denied, so let's raise a proper
# exception # exception
raise Vagrant::Errors::SCPPermissionDenied, :path => to.to_s raise Vagrant::Errors::SCPPermissionDenied,
from: from.to_s,
to: to.to_s
end end
protected protected

View File

@ -571,10 +571,12 @@ en:
is properly installed on your system and available on the PATH. is properly installed on your system and available on the PATH.
scp_permission_denied: |- scp_permission_denied: |-
Failed to upload a file to the guest VM via SCP due to a permissions Failed to upload a file to the guest VM via SCP due to a permissions
error. This is normally because the user running Vagrant doesn't have error. This is normally because the SSH user doesn't have permission
read permission on the file. Please set proper permissions on the file: to write to the destination location. Alternately, the user running
Vagrant on the host machine may not have permission to read the file.
%{path} Source: %{from}
Dest: %{to}
scp_unavailable: |- scp_unavailable: |-
SSH server on the guest doesn't support SCP. Please install the necessary SSH server on the guest doesn't support SCP. Please install the necessary
software to enable SCP on your guest operating system. software to enable SCP on your guest operating system.