Merge pull request #7591 from MikeMcQuaid/analytics-options-exception

utils/analytics: fix options reporting.
This commit is contained in:
Mike McQuaid 2020-05-18 09:13:48 +01:00 committed by GitHub
commit 5572a70a2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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