analytics: fix display of build error options.

Currently these are all like `wget #<Options:0x0000000101171658>`.
This commit is contained in:
Mike McQuaid 2018-10-13 15:09:03 -07:00
parent 9b84b2404a
commit c2d23838d0
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -83,7 +83,7 @@ module Utils
return if exception.formula.tap.private?
action = exception.formula.full_name
if (options = exception.options)
if (options = exception.options&.to_a&.join(" "))
action = "#{action} #{options}".strip
end
report_event("BuildError", action)