diff options
| -rw-r--r-- | Cellar/homebrew/brewkit.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Cellar/homebrew/brewkit.rb b/Cellar/homebrew/brewkit.rb index 96c653767..060145b71 100644 --- a/Cellar/homebrew/brewkit.rb +++ b/Cellar/homebrew/brewkit.rb @@ -165,9 +165,12 @@ end # force a prettier exception handler unless --verbose or HOMEBREW_DEBUG Kernel.at_exit { - unless ARGV.include? '--verbose' or ENV['HOMEBREW_DEBUG'] - puts "\033[1;31mError\033[0;0m: #{$!}" if $! - exit! 1 + if $! and not (ARGV.include? '--verbose' or ENV['HOMEBREW_DEBUG']) + exit! 130 if $1.class == Interrupt #control-c + if $!.kind_of? StandardError + puts "\033[1;31mError\033[0;0m: #{$!}" + exit! 1 + end end } |
