Better logging in the config logger
This commit is contained in:
parent
c57ba9de58
commit
e9327c4a28
|
@ -201,6 +201,9 @@ module Vagrant
|
||||||
# Report syntax errors in a nice way.
|
# Report syntax errors in a nice way.
|
||||||
raise Errors::VagrantfileSyntaxError, :file => e.message
|
raise Errors::VagrantfileSyntaxError, :file => e.message
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
|
@logger.error("Vagrantfile load error: #{e.message}")
|
||||||
|
@logger.error(e.backtrace.join("\n"))
|
||||||
|
|
||||||
# Report the generic exception
|
# Report the generic exception
|
||||||
raise Errors::VagrantfileLoadError,
|
raise Errors::VagrantfileLoadError,
|
||||||
:path => path,
|
:path => path,
|
||||||
|
|
Loading…
Reference in New Issue