From c1bd7ae9632214b4ede2e4c91c9eccff39ed9201 Mon Sep 17 00:00:00 2001 From: Nathan Brown Date: Wed, 9 Oct 2024 15:29:12 +0100 Subject: [PATCH] feat(cb2-*): add in missing error log in catch block (#194) --- src/functions/certGen.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/functions/certGen.ts b/src/functions/certGen.ts index a69a7a4..f57c070 100644 --- a/src/functions/certGen.ts +++ b/src/functions/certGen.ts @@ -16,6 +16,7 @@ const certGen: Handler = async (event: SQSEvent, context?: Context, callback?: C try { await processRequest.process(JSON.parse(record.body)); } catch (error) { + console.error(error); batchItemFailures.push({ itemIdentifier: record.messageId }); } }