Return actual error from get_payment_quote?? #1271
Labels
No labels
DB & Storage
Deployment
Error Handling & Logging
Maintenance
Payment Backend
backport
backport v0.13.x
backport v0.14.x
backport v0.15.x
bindings
blocked
bug
cdk-sql
ci
cli
deps
documentation
duplicate
enhancement
good first issue
help wanted
invalid
keep-open
ldk-node-ui
migrations
mint
mutation-testing
needs rebase
needs review
new nut
nut change
question
ready
rust-version
rustfmt
stacked hold
stale
testing
wallet
weekly-report
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cashubtc/cdk#1271
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Current behavior
When a payment processor throws an error from their
get_payment_quoteimplementation the mint will always returnUnsupportedUnit. This happens hereQuestion
Is this intentional? Would it make more sense to return the actual error?
The reason I'm asking is that I want to validate the melt request in my payment processor and if invalid I want the wallet to get the actual error that caused the request to fail.
Ah no I've seen this before so knew something was wrong but never looked into where it was happening.
We should return a better error.