Node.js based forum software built for the modern web
refactor: log error as well
Barış Soner Uşaklı1d62bd6d7b6d
diff --git a/src/controllers/errors.js b/src/controllers/errors.jsindex 2ea7e472cb..1f8a401e2e 100644--- a/src/controllers/errors.js+++ b/src/controllers/errors.js@@ -88,6 +88,7 @@ exports.handleErrors = async function handleErrors(err, req, res, next) { // eslawait defaultHandler();}} catch (_err) {+ winston.error(`${req.originalUrl}\n${_err.stack}`);res.status(500).send(_err.message);}};