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.
|
||||
raise Errors::VagrantfileSyntaxError, :file => e.message
|
||||
rescue Exception => e
|
||||
@logger.error("Vagrantfile load error: #{e.message}")
|
||||
@logger.error(e.backtrace.join("\n"))
|
||||
|
||||
# Report the generic exception
|
||||
raise Errors::VagrantfileLoadError,
|
||||
:path => path,
|
||||
|
|
Loading…
Reference in New Issue