Rescue from new scoped Vagrant::Errors::VagrantError

This commit is contained in:
Mitchell Hashimoto 2010-08-27 10:02:17 -07:00
parent aa0579a24d
commit bf27d783cc
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ env = Vagrant::Environment.load!
begin begin
Vagrant::CLI.start(ARGV, :env => env) 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.message, false
env.ui.error e.backtrace.join("\n"), false if ENV["VAGRANT_DEBUG"] env.ui.error e.backtrace.join("\n"), false if ENV["VAGRANT_DEBUG"]
exit e.status_code exit e.status_code