mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
add some eslint rules
This commit is contained in:
@@ -10,7 +10,7 @@ let InternalServerError = errors.InternalServerError;
|
||||
module.exports = function (err, req, res, next) {
|
||||
// Log the original error with some metadata
|
||||
let stack = err.stack || err.message || err;
|
||||
logging.error(stack, {
|
||||
logger.error(stack, {
|
||||
originalUrl: req.originalUrl,
|
||||
headers: req.headers,
|
||||
body: req.body
|
||||
|
||||
Reference in New Issue
Block a user