From 9a2b746f76c5d0f9a7a02a1916bd509668fcaee3 Mon Sep 17 00:00:00 2001 From: "David A. Ramos" Date: Sat, 12 Oct 2024 20:19:35 -0700 Subject: [PATCH] Improve HttpClientError::Reqwest error message 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. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 75fc460..f5ffc79 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -599,7 +599,7 @@ where RE: Error + 'static, { /// Error returned by reqwest crate. - #[error("request failed")] + #[error("client error")] Reqwest(#[from] Box), /// Non-reqwest HTTP error. #[error("HTTP error")]