core: Batch action says immediately when error occurred

This commit is contained in:
Mitchell Hashimoto 2014-04-20 08:59:37 -07:00
parent d96c5a81af
commit 4ced49bf0d
2 changed files with 6 additions and 0 deletions

View File

@ -89,6 +89,10 @@ module Vagrant
# Store the exception that will be processed later # Store the exception that will be processed later
Thread.current[:error] = e 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 end
# If we forked during the process run, we need to do a hard # If we forked during the process run, we need to do a hard

View File

@ -250,6 +250,8 @@ en:
are: %{valid_events} are: %{valid_events}
general: general:
batch_notify_error: |-
An error occurred. The error will be shown after all tasks complete.
batch_unexpected_error: |- batch_unexpected_error: |-
An unexpected error ocurred when executing the action on the An unexpected error ocurred when executing the action on the
'%{machine}' machine. Please report this as a bug: '%{machine}' machine. Please report this as a bug: