Skip to content

Commit

Permalink
fix error decl
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacherr committed Oct 21, 2024
1 parent 516c58b commit e3e5300
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assyst-core/src/rest/web_media_download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ pub struct WebDownloadResult {

#[derive(Deserialize)]
pub struct WebDownloadError {
pub context: WebDownloadErrorContext,
pub error: WebDownloadErrorContext,
}
impl Display for WebDownloadError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let inner = &self.context.code;
let inner = &self.error.code;
match &inner.to_ascii_lowercase()[..] {
"error.api.unreachable" => f.write_str("API unreachable (try again later)"),
"error.api.timed_out" => f.write_str("API timeout (try again later)"),
Expand Down

0 comments on commit e3e5300

Please sign in to comment.