Skip to content

Invidious is an alternative front-end to YouTube

Throw 500 on '/watch' page error

Omar Rothb14a8c3f3daf
diff --git a/src/invidious.cr b/src/invidious.cr
index 3b42c443..16a2d458 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -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