From 53b7909910b9179ca49060d0c8146a3fa1f71c89 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Thu, 1 Dec 2022 13:53:32 +0000 Subject: [PATCH] Adjust app --- app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app.js b/app.js index fa536ee..fabdfb1 100644 --- a/app.js +++ b/app.js @@ -21,6 +21,7 @@ app.use((err, req, res, next) => { const statusCode = err.statuscode || 500; console.error(err.message, err.stack); res.status(statusCode).json({'message': err.message}); + return; }); // Point to Routes