From a73f174ada005f71a77f12e185da154aa5c254a9 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 24 May 2022 12:35:08 +0200 Subject: [PATCH] slightly change error formatting --- src/k2v-client/error.rs | 2 +- src/k2v-client/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/k2v-client/error.rs b/src/k2v-client/error.rs index 98379697..37c221f2 100644 --- a/src/k2v-client/error.rs +++ b/src/k2v-client/error.rs @@ -5,7 +5,7 @@ use thiserror::Error; /// Errors returned by this crate #[derive(Error, Debug)] pub enum Error { - #[error("{0} {1}: {2} (at {3})")] + #[error("{0}, {1}: {2} (path = {3})")] Remote( http::StatusCode, Cow<'static, str>, diff --git a/src/k2v-client/lib.rs b/src/k2v-client/lib.rs index 16d51819..95974d7a 100644 --- a/src/k2v-client/lib.rs +++ b/src/k2v-client/lib.rs @@ -332,7 +332,7 @@ impl K2vClient { res.status, "unknown".into(), err_body_str.into(), - "".into(), + "?".into(), ), }; return Err(err);