From b14a8c3f3daff01f9b064e50a6d57237f1ec4902 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 29 Jul 2018 21:05:58 -0500 Subject: [PATCH] Throw 500 on '/watch' page error --- src/invidious.cr | 1 + 1 file changed, 1 insertion(+) 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