Skip to content

Commit

Permalink
Improve HttpClientError::Reqwest error message
Browse files Browse the repository at this point in the history
Previously, both the outer `RequestTokenError::Request` enum
variant and the inner `HttpClientError::Reqwest` enum variant
printed "Request error"/"request error" as their error messages.
This change fixes the redundant inner error message.

Resolves #288.
  • Loading branch information
ramosbugs committed Oct 13, 2024
1 parent 2492d69 commit 9a2b746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ where
RE: Error + 'static,
{
/// Error returned by reqwest crate.
#[error("request failed")]
#[error("client error")]
Reqwest(#[from] Box<RE>),
/// Non-reqwest HTTP error.
#[error("HTTP error")]
Expand Down

0 comments on commit 9a2b746

Please sign in to comment.