utils/analytics: fix options reporting.
Check we have a non-empty `options` and convert them all to human readable strings.
This commit is contained in:
parent
9fcaa46cdf
commit
f5b6a90fd0
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user