fix error text
This commit is contained in:
parent
ce3ee703df
commit
1ef2af3f5d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue