From b0da58a49e1dbc90b21eabd3daa3d7e00b8d4ba6 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 5 Jun 2009 23:36:40 +0100 Subject: 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(-) (limited to 'Library') 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}" -- cgit v1.2.3