From c1032115df6883eb1163217eed5d95b0ca76d90e Mon Sep 17 00:00:00 2001 From: adshrc Date: Fri, 27 Sep 2024 11:59:42 +0200 Subject: [PATCH] refactor(worker.js): added underlying error message if a processing error occurs --- worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker.js b/worker.js index da787fd..4436c03 100644 --- a/worker.js +++ b/worker.js @@ -84,7 +84,7 @@ export default { } catch (error) { // Return a 202 to prevent retries in case of an error - return new Response('Event was discarded because of a processing error', { status: 202 }); + return new Response('Event was discarded because of a processing error: ' + error, { status: 202 }); } }, };