From d2add7f999b60ec77cd4390015e67d335837aa9a Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Thu, 16 Jan 2025 08:56:15 +0100 Subject: [PATCH] fix: do not repeat error code in query call reject message --- rs/http_endpoints/public/src/query.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rs/http_endpoints/public/src/query.rs b/rs/http_endpoints/public/src/query.rs index 27bc9b465b1..134c6672360 100644 --- a/rs/http_endpoints/public/src/query.rs +++ b/rs/http_endpoints/public/src/query.rs @@ -234,7 +234,7 @@ pub(crate) async fn query( Err(user_error) => HttpQueryResponse::Rejected { error_code: user_error.code().to_string(), reject_code: user_error.reject_code() as u64, - reject_message: user_error.to_string(), + reject_message: user_error.description().to_string(), }, };