error_and_exit now uses `abort`, which prints to stdout before exiting
This commit is contained in:
parent
20ed284372
commit
b4e25143dc
|
@ -3,16 +3,15 @@ module Vagrant
|
||||||
def self.included(base)
|
def self.included(base)
|
||||||
base.extend Vagrant::Util
|
base.extend Vagrant::Util
|
||||||
end
|
end
|
||||||
|
|
||||||
def error_and_exit(error)
|
def error_and_exit(error)
|
||||||
puts <<-error
|
abort <<-error
|
||||||
=====================================================================
|
=====================================================================
|
||||||
Vagrant experienced an error!
|
Vagrant experienced an error!
|
||||||
|
|
||||||
#{error.chomp}
|
#{error.chomp}
|
||||||
=====================================================================
|
=====================================================================
|
||||||
error
|
error
|
||||||
exit
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def logger
|
def logger
|
||||||
|
|
Loading…
Reference in New Issue