brew-pull: rescue a specific exception

This commit is contained in:
Jack Nagel 2014-07-05 17:30:41 -05:00
parent 9a9328eef4
commit 01dc9c4900

View File

@ -73,7 +73,7 @@ ARGV.named.each do |arg|
begin
safe_system 'git', 'am', *patch_args
rescue => e
rescue ErrorDuringExecution
system 'git', 'am', '--abort'
odie 'Patch failed to apply: aborted.'
end