better err message ek suggestion

This commit is contained in:
k00b 2024-09-19 15:32:18 -05:00
parent 2f191e04f9
commit 731df5fc67
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ export async function retryPaidAction (actionType, args, context) {
const failedInvoice = await models.invoice.findUnique({ where: { id: invoiceId, actionState: 'FAILED' } })
if (!failedInvoice) {
throw new Error(`retryPaidAction - invoice not found or not in failed state ${actionType}`)
throw new Error(`retryPaidAction ${actionType} - invoice ${invoiceId} not found or not in failed state`)
}
const { msatsRequested, actionId } = failedInvoice