mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-05-26 12:32:25 +00:00
Refactor video access route
- Move errors to separate files instead of embedding
- Consistent interface for error generation
- Move renderVideo function into route
- Fix unhandled FetchError regression from dbbe950
This commit is contained in:
parent
94e12a2ee8
commit
81a4d10474
7 changed files with 110 additions and 94 deletions
4
pug/errors/instance-error.pug
Normal file
4
pug/errors/instance-error.pug
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
p #[strong= error.message]
|
||||
if error.identifier
|
||||
p #[code= error.identifier]
|
||||
p That error was generated by #[code= instanceOrigin].
|
||||
Loading…
Add table
Add a link
Reference in a new issue