From d1e0c5b08e93032e17b9c0b8e66ed18ba4bc9089 Mon Sep 17 00:00:00 2001 From: Luca Warmenhoven Date: Tue, 28 May 2024 12:12:34 +0200 Subject: [PATCH] Crack butt --- code/web/incoming_request_handlers.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/web/incoming_request_handlers.js b/code/web/incoming_request_handlers.js index 79609e5..8289837 100644 --- a/code/web/incoming_request_handlers.js +++ b/code/web/incoming_request_handlers.js @@ -43,7 +43,8 @@ function handleIncoming(request, response, app, pool) })); } }) - .catch(_ => { + .catch(error => { + console.log(error); response .status(500) .send(JSON.stringify({error: 'Internal server error (Querying)'})); @@ -52,7 +53,8 @@ function handleIncoming(request, response, app, pool) conn.end(); }); }) - .catch(_ => { + .catch(error => { + console.log(error); response .status(500) .send(JSON.stringify({error: 'Internal server error (Connection)'}));