Skip to content

Commit

Permalink
better error
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Apr 20, 2024
1 parent 282356b commit 91b5d84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cashu/gateway/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 91b5d84

Please sign in to comment.