Skip to content
Browse files

Include the exception

  • Loading branch information...
1 parent c7a641a commit 968889633f6922443b9815a615cea8f93c45e271 @jordansissel committed Jan 7, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/fpm/package/pear.rb
View
4 lib/fpm/package/pear.rb
@@ -106,8 +106,8 @@ def input(input_package)
begin
content = File.read(path).gsub(/#{Regexp.escape(staging_path)}/, "")
File.write(path, content)
- rescue ArgumentError
- @logger.warn("error replacing staging_path in file", :replace_in => path)
+ rescue ArgumentError => e
+ @logger.warn("error replacing staging_path in file", :replace_in => path, :error => e)
end
end
FileUtils.rm_r(path) if delete_these.include?(File.basename(path))

0 comments on commit 9688896

Please sign in to comment.
Something went wrong with that request. Please try again.