From 91b5d84555a22832a11872522ef7b266f386ca38 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sun, 21 Apr 2024 00:21:00 +0200 Subject: [PATCH] better error --- cashu/gateway/gateway.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cashu/gateway/gateway.py b/cashu/gateway/gateway.py index f0fbe969..91c6d2bb 100644 --- a/cashu/gateway/gateway.py +++ b/cashu/gateway/gateway.py @@ -94,7 +94,9 @@ async def melt_quote( self, melt_quote_request: GatewayMeltQuoteRequest ) -> GatewayMeltQuoteResponse: if melt_quote_request.mint != settings.mint_url: - raise TransactionError("mint url does not match gateway mint url") + raise TransactionError( + f"mint does not match gateway mint: {settings.mint_url}" + ) request = melt_quote_request.request invoice = bolt11.decode(pr=request)