aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/brew.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/brew.rb b/Library/brew.rb
index 8c904c549..94fa33207 100755
--- a/Library/brew.rb
+++ b/Library/brew.rb
@@ -175,8 +175,9 @@ rescue KegUnspecifiedError
rescue UsageError
onoe "Invalid usage"
abort ARGV.usage
-rescue SystemExit
- puts "Kernel.exit" if ARGV.verbose?
+rescue SystemExit => e
+ onoe "Kernel.exit" if ARGV.verbose? && !e.success?
+ puts e.backtrace if ARGV.debug?
raise
rescue Interrupt => e
puts # seemingly a newline is typical