Throw 500 on '/watch' page error

This commit is contained in:
Omar Roth 2018-07-29 21:05:58 -05:00
parent 714fd3dae3
commit b14a8c3f3d

View File

@ -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