mirror of
https://gitea.invidious.io/iv-org/invidious
synced 2025-06-05 23:29:12 +02:00
Throw 500 on '/watch' page error
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user