From e9327c4a285718c5edfbdf4eac6018af7aadf01b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 30 Jan 2013 20:12:41 -0800 Subject: [PATCH] Better logging in the config logger --- lib/vagrant/config/loader.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/vagrant/config/loader.rb b/lib/vagrant/config/loader.rb index ffd66b2c9..41237e46a 100644 --- a/lib/vagrant/config/loader.rb +++ b/lib/vagrant/config/loader.rb @@ -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,