mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Print detailed error message when playlist can't be retrieved
This commit is contained in:
parent
9bdfb0a32b
commit
a61735e29a
1 changed files with 1 additions and 1 deletions
|
@ -440,7 +440,7 @@ class Invidious::Routes::Playlists < Invidious::Routes::BaseRoute
|
|||
begin
|
||||
videos = get_playlist_videos(PG_DB, playlist, offset: (page - 1) * 100, locale: locale)
|
||||
rescue ex
|
||||
videos = [] of PlaylistVideo
|
||||
return error_template(500, "Error encountered while retrieving playlist videos.<br>#{ex.message}")
|
||||
end
|
||||
|
||||
if playlist.author == user.try &.email
|
||||
|
|
Loading…
Reference in a new issue