mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-20 04:41:58 +02:00
Improve JSON repr of ProblematicTimelineItem
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user