Rescue from new scoped Vagrant::Errors::VagrantError
This commit is contained in:
parent
aa0579a24d
commit
bf27d783cc
|
@ -6,7 +6,7 @@ env = Vagrant::Environment.load!
|
|||
|
||||
begin
|
||||
Vagrant::CLI.start(ARGV, :env => env)
|
||||
rescue Vagrant::VagrantError => e
|
||||
rescue Vagrant::Errors::VagrantError => e
|
||||
env.ui.error e.message, false
|
||||
env.ui.error e.backtrace.join("\n"), false if ENV["VAGRANT_DEBUG"]
|
||||
exit e.status_code
|
||||
|
|
Loading…
Reference in New Issue