mirror of
https://github.com/iv-org/invidious.git
synced 2025-03-13 09:26:35 -04:00
Improve JSON repr of ProblematicTimelineItem
This commit is contained in:
parent
ade2ff7e4d
commit
de5cf8bb6f
@ -305,6 +305,8 @@ struct ProblematicTimelineItem
|
|||||||
def to_json(locale : String?, json : JSON::Builder)
|
def to_json(locale : String?, json : JSON::Builder)
|
||||||
json.object do
|
json.object do
|
||||||
json.field "type", "parse-error"
|
json.field "type", "parse-error"
|
||||||
|
json.field "errorMessage", @parse_exception.message
|
||||||
|
json.field "errorBacktrace", @parse_exception.inspect_with_backtrace
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user