taler-rust

GNU Taler code in Rust. Largely core banking integrations.
Log | Files | Refs | Submodules | README | LICENSE

commit 3af1bc9fd3fd76faea4c67351b8736e58097c267
parent 011143f5b27378359d3e10ae97ba579a88c983ef
Author: Antoine A <>
Date:   Tue, 24 Nov 2026 13:48:22 +0100

common: improve error message

Diffstat:
Mcommon/taler-api/src/api/wire.rs | 2+-
Mcommon/taler-api/src/test.rs | 2--
2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/common/taler-api/src/api/wire.rs b/common/taler-api/src/api/wire.rs @@ -142,7 +142,7 @@ pub fn router<I: WireGateway>(state: Arc<I>, cfg: &WireGatewayCfg) -> Router { post(async || { failure( ErrorCode::GENERIC_FEATURE_NOT_IMPLEMENTED, - "Wire Gateway admin endpoints are disabled (ENABLE_ADMIN_ENDPOINTS = NO).", + "admin endpoints are disabled", ) }) } diff --git a/common/taler-api/src/test.rs b/common/taler-api/src/test.rs @@ -157,8 +157,6 @@ async fn wire_gateway_admin_endpoints_are_opt_in() { response.assert_status(expected); if expected == StatusCode::NOT_IMPLEMENTED { response.assert_error(ErrorCode::GENERIC_FEATURE_NOT_IMPLEMENTED); - let error: ErrorDetail = response.json_parse(); - assert!(error.hint.unwrap().contains("ENABLE_ADMIN_ENDPOINTS = NO")); } } }