Closed vindard closed 3 years ago
When trying to pay a no-amount invoice the error message received is:
Invalid payment information. Please use a Bitcoin address or Lightning payment request to initiate a payment.
Invalid payment information.
Please use a Bitcoin address or Lightning payment request to initiate a payment.
This is misleading and confusing since it suggests there is some error in the request itself and not just a business logic rule failure.
I came across this issue and thought there was a problem with the other person's wallet. I only found the problem through a mix of:
The error message should be more directed at the business rule.
Error message should say the invoice needs a non-zero amount.
Error message simply says the invoice is invalid.
Change the error message to be more specific.
Simply try to pay a zero-amount ln invoice.
Thanks again for the issue and PR, this is merged now, so I will close it.
Description
When trying to pay a no-amount invoice the error message received is:
This is misleading and confusing since it suggests there is some error in the request itself and not just a business logic rule failure.
I came across this issue and thought there was a problem with the other person's wallet. I only found the problem through a mix of:
The error message should be more directed at the business rule.
Expected Behavior
Error message should say the invoice needs a non-zero amount.
Actual Behavior
Error message simply says the invoice is invalid.
Possible Fix
Change the error message to be more specific.
Steps to Reproduce
Simply try to pay a zero-amount ln invoice.