mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
reword error messages
This commit is contained in:
parent
ca4c2115ee
commit
260bab598e
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue