diff --git a/lib/vagrant-r10k/action/deploy.rb b/lib/vagrant-r10k/action/deploy.rb index 0e1a29a..b83ceca 100644 --- a/lib/vagrant-r10k/action/deploy.rb +++ b/lib/vagrant-r10k/action/deploy.rb @@ -69,7 +69,7 @@ def deploy(env, config) @logger.debug("vagrant-r10k: sync task complete") rescue Exception => ex @env[:ui].error "Invalid syntax in Puppetfile at #{config[:puppetfile_path]}" - raise ErrorWrapper.new(ex) + raise ErrorWrapper.new(ex.original) end unless runner.succeeded? runner.get_errors().each do |error| diff --git a/lib/vagrant-r10k/action/validate.rb b/lib/vagrant-r10k/action/validate.rb index 47fa945..23fd102 100644 --- a/lib/vagrant-r10k/action/validate.rb +++ b/lib/vagrant-r10k/action/validate.rb @@ -34,7 +34,7 @@ def call(env) puppetfile.load rescue Exception => ex @env[:ui].error "Invalid syntax in Puppetfile at #{config[:puppetfile_path]}" - raise ErrorWrapper.new(ex) + raise ErrorWrapper.new(ex.original) end @app.call(env)