Move up location of error message
This commit is contained in:
parent
c35e0a4f9a
commit
8451cbf854
|
@ -227,12 +227,13 @@ module Vagrant
|
|||
begin
|
||||
prov.provision
|
||||
rescue Exception => e
|
||||
@machine.ui.error(I18n.t("vagrant.errors.triggers_run_fail"))
|
||||
|
||||
if on_error == :halt
|
||||
@logger.debug("Trigger run encountered an error. Halting on error...")
|
||||
raise e
|
||||
else
|
||||
@logger.debug("Trigger run encountered an error. Continuing on anyway...")
|
||||
@machine.ui.error(I18n.t("vagrant.errors.triggers_run_fail"))
|
||||
@machine.ui.error(e.message)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue