diff options
| author | Mike McQuaid | 2017-06-09 14:53:01 +0300 |
|---|---|---|
| committer | Mike McQuaid | 2017-06-09 14:53:01 +0300 |
| commit | 99c897acadc002d5e3b741f406ca372956c345ea (patch) | |
| tree | d127b5f9c580b12eb0043e39742a08ffbb9f1b38 /Library/Homebrew/utils | |
| parent | 1ef00aaf6f9945170f6db5a67d9c0e9b359e906a (diff) | |
| download | brew-99c897acadc002d5e3b741f406ca372956c345ea.tar.bz2 | |
BuildError: report options to analytics.
Without this it's not easy to make much sense of these failures.
Diffstat (limited to 'Library/Homebrew/utils')
| -rw-r--r-- | Library/Homebrew/utils/analytics.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/utils/analytics.rb b/Library/Homebrew/utils/analytics.rb index 8c69a2980..23000f8dd 100644 --- a/Library/Homebrew/utils/analytics.rb +++ b/Library/Homebrew/utils/analytics.rb @@ -65,7 +65,11 @@ module Utils return unless exception.formula.tap return unless exception.formula.tap.installed? return if exception.formula.tap.private? - report_event("BuildError", exception.formula.full_name) + action = exception.formula.full_name + if (options = exception.options) + action = "#{action} #{options}".strip + end + report_event("BuildError", action) end end end |
