diff --git a/Library/Contributions/cmd/brew-pull.rb b/Library/Contributions/cmd/brew-pull.rb index f75174c736..45e1f8e505 100755 --- a/Library/Contributions/cmd/brew-pull.rb +++ b/Library/Contributions/cmd/brew-pull.rb @@ -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