From 651b1dd75187a560c1a1f3299e1b5755efa0180f Mon Sep 17 00:00:00 2001 From: Igor Zalutski Date: Fri, 28 Nov 2025 18:30:26 +0200 Subject: [PATCH] Update app.js --- app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app.js b/app.js index 2380a13..5f292c1 100644 --- a/app.js +++ b/app.js @@ -26,6 +26,7 @@ app.use(function(req, res, next) { next(createError(404)); }); + // error handler app.use(function(err, req, res, next) { // set locals, only providing error in development