Skip to content

Commit

Permalink
add more error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacherr committed Oct 21, 2024
1 parent 8184e0e commit c7345ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assyst-core/src/rest/web_media_download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ impl Display for WebDownloadError {
},
"error.api.link.invalid" => f.write_str("That link is invalid. Make sure it is correct."),
"error.api.link.unsupported" => f.write_str("That link or format is unsupported."),
"error.api.fetch.fail" => f.write_str("Failed to fetch the media. Make sure the link is valid, or try again later."),
"error.api.fetch.critical" => f.write_str("Critical error fetching the media. Make sure the link is valid, or try again later."),
"error.api.fetch.empty" => f.write_str("The service or website returned no data. This may be caused by the site blocking the downloader (try again later)"),
"error.api.fetch.rate" => f.write_str("The service or website has rate limited the downloader (try again later)"),
"error.api.fetch.short_link" => f.write_str("Unable to resolve the shortlink. Try using the full link to the media."),
"error.api.content.too_long" => f.write_str("The requested content is too big."),
"error.api.content.video.unavailable" => f.write_str(
"That video is unavailable. Make sure it is not region or age restricted, and is not private.",
Expand Down

0 comments on commit c7345ed

Please sign in to comment.