aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-06-05 23:36:40 +0100
committerMax Howell2009-06-05 23:36:40 +0100
commitb0da58a49e1dbc90b21eabd3daa3d7e00b8d4ba6 (patch)
treeeb093dde22d402e9f8a78efeece59bf03bc0d90e /Library
parentdd862085f98cce4f3c64ffcf908de034537e4843 (diff)
downloadhomebrew-b0da58a49e1dbc90b21eabd3daa3d7e00b8d4ba6.tar.bz2
Catch all exceptions in brew
And thus recover from errors always, not just sometimes.
Diffstat (limited to 'Library')
-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}"