summaryrefslogtreecommitdiffstats
path: root/assets/js/watch.js
diff options
context:
space:
mode:
authorsyeopite <syeopite@syeopite.dev>2025-02-28 18:21:35 -0800
committersyeopite <syeopite@syeopite.dev>2025-03-19 22:52:03 -0700
commit94cb80ea810c6ee6ee370ac02afb6924f9e8485c (patch)
tree1fb83463443177ada8c88a204e6d211f455dfa66 /assets/js/watch.js
parent409d12a81e75451a8efc7574d4bad622f75d3769 (diff)
downloadinvidious-94cb80ea810c6ee6ee370ac02afb6924f9e8485c.tar.gz
invidious-94cb80ea810c6ee6ee370ac02afb6924f9e8485c.tar.bz2
invidious-94cb80ea810c6ee6ee370ac02afb6924f9e8485c.zip
Handle parse errors gracefully on timeline items
Prior to this commit, if even a single item fails to parse Invidious will throw out an error. This means that even if everything else on a page can be parsed and rendered without issues, the single problematic item will cause the entire page to be unusable. This commit gracefully handles parse errors by catching and then replacing the problematic item with a new "timeline error" object that represents the parse error. This will allow the rest of the page to be rendered and an error card that will replace the location of the problematic item.
Diffstat (limited to 'assets/js/watch.js')
0 files changed, 0 insertions, 0 deletions