Skip to content
Snippets Groups Projects
Unverified Commit f5b6a90f authored by Mike McQuaid's avatar Mike McQuaid
Browse files

utils/analytics: fix options reporting.

Check we have a non-empty `options` and convert them all to human
readable strings.
parent 9fcaa46c
Branches
Tags
No related merge requests found
......@@ -67,8 +67,8 @@ module Utils
return if exception.formula.tap.private?
action = exception.formula.full_name
if (options = exception.options&.to_a&.join(" "))
action = "#{action} #{options}".strip
if (options = exception.options.to_a.presence)
action = "#{action} #{options.map(&:to_s).join(" ")}".strip
end
report_event("BuildError", action)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment