diff options
| author | Mike McQuaid | 2016-03-28 09:20:48 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-04-04 12:27:47 +0100 |
| commit | c5cd206169c57609b1c6d2f4cff9e390b6350a27 (patch) | |
| tree | 194315cc30c5a73899cd439707f6b0743ff9fcb1 /Library | |
| parent | 1238c65ba14831bc571cf01aead8fd10b916c837 (diff) | |
| download | brew-c5cd206169c57609b1c6d2f4cff9e390b6350a27.tar.bz2 | |
brew.rb: report some exceptions.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/brew.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/brew.rb b/Library/brew.rb index 202e9a847..4b789a490 100644 --- a/Library/brew.rb +++ b/Library/brew.rb @@ -130,14 +130,17 @@ rescue Interrupt => e $stderr.puts # seemingly a newline is typical exit 130 rescue BuildError => e + report_analytics_exception(e) e.dump exit 1 rescue RuntimeError, SystemCallError => e + report_analytics_exception(e) raise if e.message.empty? onoe e $stderr.puts e.backtrace if ARGV.debug? exit 1 rescue Exception => e + report_analytics_exception(e) onoe e if internal_cmd $stderr.puts "#{Tty.white}Please report this bug:" |
