brew-pull: rescue a specific exception
This commit is contained in:
parent
9a9328eef4
commit
01dc9c4900
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user