fix error text

This commit is contained in:
Riccardo Balbo 2024-10-18 17:18:19 +02:00
parent ce3ee703df
commit 1ef2af3f5d
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ export async function createInvoice (
const res = out.data.lnInvoiceCreate
const errors = res.errors
if (errors && errors.length > 0) {
throw new Error('failed to pay invoice ' + errors.map(e => e.code + ' ' + e.message).join(', '))
throw new Error('failed to create invoice ' + errors.map(e => e.code + ' ' + e.message).join(', '))
}
const invoice = res.invoice.paymentRequest
return invoice