Skip to content

Commit

Permalink
Catch ProcsesFailed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Feb 8, 2013
1 parent 1302763 commit cceab5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/fpm/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@ def execute
rescue FPM::Package::InvalidArgument => e
@logger.error("Invalid package argument: #{e}")
return 1
rescue FPM::Util::ProcessFailed => e
@logger.error("Process failed: #{e}")
return 1
ensure
input.cleanup unless input.nil?
output.cleanup unless output.nil?
Expand Down

0 comments on commit cceab5f

Please sign in to comment.