diff options
| author | Mike McQuaid | 2017-06-10 18:42:12 +0300 |
|---|---|---|
| committer | GitHub | 2017-06-10 18:42:12 +0300 |
| commit | f3970b52b6827176838cceead370a50e0cbb6cbf (patch) | |
| tree | 10ea8ef111e56a1e260f2e968f5e765e5d62b3c7 /Library/Homebrew/utils | |
| parent | 8ad675790deef80760fbcc1b5b644dad98a968b8 (diff) | |
| parent | 99c897acadc002d5e3b741f406ca372956c345ea (diff) | |
| download | brew-f3970b52b6827176838cceead370a50e0cbb6cbf.tar.bz2 | |
Merge pull request #2758 from MikeMcQuaid/build-error-options
BuildError: report options to analytics.
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 |
