Better logging in the config logger

This commit is contained in:
Mitchell Hashimoto 2013-01-30 20:12:41 -08:00
parent c57ba9de58
commit e9327c4a28
1 changed files with 3 additions and 0 deletions

View File

@ -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,