From 4ced49bf0d34b945ef80e4f6e881f6025d2184ad Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 20 Apr 2014 08:59:37 -0700 Subject: [PATCH] core: Batch action says immediately when error occurred --- lib/vagrant/batch_action.rb | 4 ++++ templates/locales/en.yml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/lib/vagrant/batch_action.rb b/lib/vagrant/batch_action.rb index adf27c3a6..764247c67 100644 --- a/lib/vagrant/batch_action.rb +++ b/lib/vagrant/batch_action.rb @@ -89,6 +89,10 @@ module Vagrant # Store the exception that will be processed later Thread.current[:error] = e + + # Let the user know that this process had an error early + # so that they see it while other things are happening. + machine.ui.error(I18n.t("vagrant.general.batch_notify_error")) end # If we forked during the process run, we need to do a hard diff --git a/templates/locales/en.yml b/templates/locales/en.yml index 5b668300a..a1a521794 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -250,6 +250,8 @@ en: are: %{valid_events} general: + batch_notify_error: |- + An error occurred. The error will be shown after all tasks complete. batch_unexpected_error: |- An unexpected error ocurred when executing the action on the '%{machine}' machine. Please report this as a bug: