diff options
| author | Mike McQuaid | 2015-12-21 08:44:41 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-12-21 10:05:49 +0000 |
| commit | 2392574a777c5f97ed76f13cefbe9a497fc8f384 (patch) | |
| tree | 4d133085867b4b5873396ee694735d937aee7946 /Library | |
| parent | cf2bf08ec97847069ce22745476b4b2987b035e5 (diff) | |
| download | brew-2392574a777c5f97ed76f13cefbe9a497fc8f384.tar.bz2 | |
brew.rb: only print "Kernel.exit" on failures.
Also, print as a warning to STDERR and print a backtrace in debug mode.
Closes Homebrew/homebrew#47099.
Closes Homebrew/homebrew#47154.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/brew.rb | 5 |
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 |
