From 098881e9db6203f5b3e26b9adc99b4fa958dd530 Mon Sep 17 00:00:00 2001 From: esraa Date: Mon, 1 Jul 2024 17:56:39 +0300 Subject: [PATCH] Dont display `ResponseError::Validation` error.. ..to end users. --- payjoin/src/send/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payjoin/src/send/error.rs b/payjoin/src/send/error.rs index ab76d9e9..69a3f1a8 100644 --- a/payjoin/src/send/error.rs +++ b/payjoin/src/send/error.rs @@ -351,7 +351,7 @@ impl Display for ResponseError { Self::WellKnown(e) => e.fmt(f), // Don't display unknowns to end users, only debug logs Self::Unrecognized { .. } => write!(f, "The receiver sent an unrecognized error."), - Self::Validation(e) => write!(f, "The receiver sent an invalid response: {}", e), + Self::Validation(_) => write!(f, "The receiver sent an invalid response."), } } }