Skip to content

Commit

Permalink
Do not try to format reqwest::blocking::Response in the message
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Nov 29, 2024
1 parent 21f37b9 commit f2943f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::responses;
pub enum Error<Response> {
#[error("encountered an error when performing an HTTP request")]
RequestError(#[from] reqwest::Error),
#[error("API responded with a client error: status code of {0}: {1}")]
#[error("API responded with a client error: status code of {0}")]
ClientErrorResponse(StatusCode, Response),
#[error("API responded with a server error: status code of {0}")]
ServerErrorResponse(StatusCode, Response),
Expand Down

0 comments on commit f2943f1

Please sign in to comment.