From fe283686979c59dd86861d111a3211d93ccb47b2 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 5 Jun 2009 23:36:40 +0100 Subject: [PATCH] Catch all exceptions in brew And thus recover from errors always, not just sometimes. --- Library/Homebrew/brewkit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb index 45b216ec01..3236a28d32 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}"