aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-07-05 17:30:41 -0500
committerJack Nagel2014-07-05 17:30:41 -0500
commitfcedd2e58964e95b6639faa541bff1a13a9cb918 (patch)
tree827abe14592c9218933386e836bcf0ba9992e77c /Library
parent2e8293fead6f9bdb8938a23e295e72615916544a (diff)
downloadhomebrew-fcedd2e58964e95b6639faa541bff1a13a9cb918.tar.bz2
brew-pull: rescue a specific exception
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-pull.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Contributions/cmd/brew-pull.rb b/Library/Contributions/cmd/brew-pull.rb
index f75174c73..45e1f8e50 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