Skip to content

Commit

Permalink
Ignore errors deleting tmp dir to show the real error
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Sanchez committed Mar 31, 2014
1 parent dcfa68d commit 8d5d2c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/librarian/puppet/source/forge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def cache_version_unpacked!(version)
Librarian::Posix.run!(command)
rescue Posix::CommandFailure => e
# Rollback the directory if the puppet module had an error
path.unlink
path.unlink rescue nil
raise Error, "Error executing puppet module install:\n#{command.join(" ")}\nError:\n#{e.message}"
end

Expand Down

0 comments on commit 8d5d2c0

Please sign in to comment.