error_and_exit now uses abort, which prints to stdout before exiting

This commit is contained in:
Mitchell Hashimoto 2010-03-04 21:05:43 -08:00
parent 20ed284372
commit b4e25143dc

View File

@ -3,16 +3,15 @@ module Vagrant
def self.included(base)
base.extend Vagrant::Util
end
def error_and_exit(error)
puts <<-error
abort <<-error
=====================================================================
Vagrant experienced an error!
#{error.chomp}
=====================================================================
error
exit
end
def logger