Merge pull request #3124 from iv-org/add-404-status-code

This commit is contained in:
Samantaz Fox
2022-07-06 22:05:01 +02:00
16 changed files with 80 additions and 11 deletions

View File

@@ -95,7 +95,7 @@ def fetch_youtube_comments(id, cursor, format, locale, thin_mode, region, sort_b
contents = body["contents"]?
header = body["header"]?
else
raise InfoException.new("Could not fetch comments")
raise NotFoundException.new("Comments not found.")
end
if !contents
@@ -290,7 +290,7 @@ def fetch_reddit_comments(id, sort_by = "confidence")
thread = result[0].data.as(RedditListing).children[0].data.as(RedditLink)
else
raise InfoException.new("Could not fetch comments")
raise NotFoundException.new("Comments not found.")
end
client.close