refactor: log error as well

isekai-main
Barış Soner Uşaklı 3 years ago
parent 73a9ca09c9
commit 1d62bd6d7b

@ -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);
}
};

Loading…
Cancel
Save