Improve JSON repr of ProblematicTimelineItem

This commit is contained in:
syeopite
2025-02-28 20:42:37 -08:00
parent 9de69c0052
commit 0e0a95430a

View File

@@ -305,6 +305,8 @@ struct ProblematicTimelineItem
def to_json(locale : String?, json : JSON::Builder)
json.object do
json.field "type", "parse-error"
json.field "errorMessage", @parse_exception.message
json.field "errorBacktrace", @parse_exception.inspect_with_backtrace
end
end
end