diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-07-29 21:05:58 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-07-29 21:05:58 -0500 |
| commit | b14a8c3f3daff01f9b064e50a6d57237f1ec4902 (patch) | |
| tree | dba1a297bf6e8f0232c6ecb12b9cbf562d452b29 /src | |
| parent | 714fd3dae3b141aa0ec878e23bc542ce371299fb (diff) | |
| download | invidious-b14a8c3f3daff01f9b064e50a6d57237f1ec4902.tar.gz invidious-b14a8c3f3daff01f9b064e50a6d57237f1ec4902.tar.bz2 invidious-b14a8c3f3daff01f9b064e50a6d57237f1ec4902.zip | |
Throw 500 on '/watch' page error
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
