From 731df5fc679e103193569cbf9e03f80651054250 Mon Sep 17 00:00:00 2001 From: k00b Date: Thu, 19 Sep 2024 15:32:18 -0500 Subject: [PATCH] better err message ek suggestion --- api/paidAction/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/paidAction/index.js b/api/paidAction/index.js index 63d22988..e18ec8ee 100644 --- a/api/paidAction/index.js +++ b/api/paidAction/index.js @@ -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