mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Throw 500 on '/watch' page error
This commit is contained in:
parent
714fd3dae3
commit
b14a8c3f3d
1 changed files with 1 additions and 0 deletions
|
@ -324,6 +324,7 @@ get "/watch" do |env|
|
|||
video = get_video(id, client, PG_DB)
|
||||
rescue ex
|
||||
error_message = ex.message
|
||||
env.response.status_code = 500
|
||||
next templated "error"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue