Skip to content

Commit

Permalink
PR #34 - fix R10k exception passing to ErrorWrapper for r10k 1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Oct 29, 2015
1 parent fb801d3 commit 202a0c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/vagrant-r10k/action/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down
2 changes: 1 addition & 1 deletion lib/vagrant-r10k/action/validate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 202a0c4

Please sign in to comment.