From 44963824a37ae3e3dffa106428205f4dfdb6e5a0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 1 Sep 2010 18:07:47 -0700 Subject: [PATCH] Add proper message when Vagrant is quit from interrupt --- lib/vagrant/errors.rb | 1 + templates/locales/en.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/vagrant/errors.rb b/lib/vagrant/errors.rb index 56be68727..8d3f84273 100644 --- a/lib/vagrant/errors.rb +++ b/lib/vagrant/errors.rb @@ -206,6 +206,7 @@ module Vagrant class VagrantInterrupt < VagrantError status_code(40) + error_key(:interrupted) end class VirtualBoxInvalidOSE < VagrantError diff --git a/templates/locales/en.yml b/templates/locales/en.yml index efb2f481f..f7242ae4b 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -8,6 +8,7 @@ en: base_vm_not_found: The base VM with the name '%{name}' was not found. box_not_found: Box '%{name}' could not be found. cli_missing_env: This command requires that a Vagrant environment be properly passed in as the last parameter. + interrupted: Vagrant exited after cleanup due to external interrupt. multi_vm_required: A multi-vm environment is required for name specification to this command. multi_vm_target_required: `vagrant %{command}` requires a specific VM name to target in a multi-VM environment. no_env: No Vagrant environment detected. Run `vagrant init` to set one up.