mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
refactor: log error as well
This commit is contained in:
@@ -88,6 +88,7 @@ exports.handleErrors = async function handleErrors(err, req, res, next) { // esl
|
||||
await defaultHandler();
|
||||
}
|
||||
} catch (_err) {
|
||||
winston.error(`${req.originalUrl}\n${_err.stack}`);
|
||||
res.status(500).send(_err.message);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user