diff --git a/controllers/errorsController.js b/controllers/errorsController.js index a37cab6..7d22687 100644 --- a/controllers/errorsController.js +++ b/controllers/errorsController.js @@ -13,8 +13,8 @@ const self = { self.handleError = (req, res, error) => { if (!res || res.headersSent) { - console.error('Unexpected missing "res" object or headers alredy sent.') - return console.trace() + console.error('Error: Unexpected missing "res" object or headers alredy sent.') + return console.error(error) } // Error messages that can be returned to users