diff options
| author | Emilien Devos <contact@emiliendevos.be> | 2022-09-02 20:20:43 +0200 |
|---|---|---|
| committer | Emilien Devos <contact@emiliendevos.be> | 2022-09-02 20:20:43 +0200 |
| commit | 260bab598e00fe769ff36ba2c171768a1fbc31bb (patch) | |
| tree | 20435e18116c2d0f92c3de2be664f3dfb89eb0f3 /src | |
| parent | ca4c2115eebd5b3eaeb7ebf9e4e704ad83e5b4bf (diff) | |
| download | invidious-260bab598e00fe769ff36ba2c171768a1fbc31bb.tar.gz invidious-260bab598e00fe769ff36ba2c171768a1fbc31bb.tar.bz2 invidious-260bab598e00fe769ff36ba2c171768a1fbc31bb.zip | |
reword error messages
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/routes/embed.cr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious/routes/embed.cr b/src/invidious/routes/embed.cr index 7860f8b9..e6486587 100644 --- a/src/invidious/routes/embed.cr +++ b/src/invidious/routes/embed.cr @@ -10,7 +10,7 @@ module Invidious::Routes::Embed videos = get_playlist_videos(playlist, offset: offset) if videos.empty? url = "/playlist?list=#{plid}" - raise NotFoundException.new(translate(locale, "video_not_exist_in_playlist", url)) + raise NotFoundException.new(translate(locale, "error_video_not_in_playlist", url)) end rescue ex : NotFoundException return error_template(404, ex) @@ -70,7 +70,7 @@ module Invidious::Routes::Embed videos = get_playlist_videos(playlist, offset: offset) if videos.empty? url = "/playlist?list=#{plid}" - raise NotFoundException.new(translate(locale, "video_not_exist_in_playlist", url)) + raise NotFoundException.new(translate(locale, "error_video_not_in_playlist", url)) end rescue ex : NotFoundException return error_template(404, ex) |
