diff options
| author | Max Howell | 2009-06-05 23:36:40 +0100 |
|---|---|---|
| committer | Max Howell | 2009-06-05 23:36:40 +0100 |
| commit | fe283686979c59dd86861d111a3211d93ccb47b2 (patch) | |
| tree | 91643d355952fa21b38227df8ea8fd0dcffcae02 /Library/Homebrew | |
| parent | 8b27aaa9896fbb1de8092ddd22fce4c1e6738f5f (diff) | |
| download | brew-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.rb | 4 |
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}" |
