diff --git a/core/api/src/app/wallets/update-single-pending-invoice.ts b/core/api/src/app/wallets/update-single-pending-invoice.ts index ca86863568..a10be84997 100644 --- a/core/api/src/app/wallets/update-single-pending-invoice.ts +++ b/core/api/src/app/wallets/update-single-pending-invoice.ts @@ -183,7 +183,14 @@ const processPendingInvoice = async ({ currency: WalletCurrency.Btc, }) if (receivedBtc instanceof Error) { - return ProcessPendingInvoiceResult.processAsPaidWithError(receivedBtc) + recordExceptionInCurrentSpan({ + error: receivedBtc, + level: receivedBtc.level, + }) + return processPendingInvoiceForDecline({ + walletInvoice, + logger: pendingInvoiceLogger, + }) } // Continue in lock