From 99c897acadc002d5e3b741f406ca372956c345ea Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 9 Jun 2017 14:53:01 +0300 Subject: BuildError: report options to analytics. Without this it's not easy to make much sense of these failures. --- Library/Homebrew/utils/analytics.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Library/Homebrew/utils') 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 -- cgit v1.2.3