Skip to content

Commit

Permalink
simplify error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kallsyms committed Jun 22, 2024
1 parent 3517e2c commit a6b92cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl ResponseErrorExt for reqwest::Response {
Ok(self)
} else {
let body = self.text().await?;
Err(anyhow!("Request failed ({}): {}", status, body))
Err(anyhow!("{} ({})", body, status))
}
}
}
Expand Down

0 comments on commit a6b92cd

Please sign in to comment.