aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMax Howell2009-06-05 23:36:40 +0100
committerMax Howell2009-06-05 23:36:40 +0100
commitfe283686979c59dd86861d111a3211d93ccb47b2 (patch)
tree91643d355952fa21b38227df8ea8fd0dcffcae02 /Library/Homebrew
parent8b27aaa9896fbb1de8092ddd22fce4c1e6738f5f (diff)
downloadbrew-fe283686979c59dd86861d111a3211d93ccb47b2.tar.bz2
Catch all exceptions in brew
And thus recover from errors always, not just sometimes.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/brewkit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb
index 45b216ec0..3236a28d3 100644
--- a/Library/Homebrew/brewkit.rb
+++ b/Library/Homebrew/brewkit.rb
@@ -175,8 +175,8 @@ public
yield self
end
end
- rescue Interrupt, RuntimeError
- if ARGV.include? '--debug'
+ rescue => e
+ if e.kind_of? Interrupt and ARGV.include? '--debug'
# debug mode allows the packager to intercept a failed build and
# investigate the problems
puts "Rescued build at: #{tmp}"