From 5f4a900d8ed04762bbafb3eb05f87d6ccae34b5b Mon Sep 17 00:00:00 2001 From: Shawn Neal Date: Tue, 22 Apr 2014 14:54:13 -0700 Subject: [PATCH] Add WinRM file transfer error and english text --- plugins/communicators/winrm/errors.rb | 4 ++++ templates/locales/comm_winrm.yml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/plugins/communicators/winrm/errors.rb b/plugins/communicators/winrm/errors.rb index ce3ab2066..2285d2115 100644 --- a/plugins/communicators/winrm/errors.rb +++ b/plugins/communicators/winrm/errors.rb @@ -21,6 +21,10 @@ module VagrantPlugins class WinRMNotReady < WinRMError error_key(:winrm_not_ready) end + + class WinRMFileTransferError < WinRMError + error_key(:winrm_file_transfer_error) + end end end end diff --git a/templates/locales/comm_winrm.yml b/templates/locales/comm_winrm.yml index f88e31b2e..0189547f9 100644 --- a/templates/locales/comm_winrm.yml +++ b/templates/locales/comm_winrm.yml @@ -20,3 +20,9 @@ en: The box is not able to report an address for WinRM to connect to yet. WinRM cannot access this Vagrant environment. Please wait for the Vagrant environment to be running and try again. + winrm_file_transfer_error: |- + Failed to transfer a file between the host and guest + + From: %{from} + To: %{to} + Message: %{message}