'use strict'

let logger = require('tracer').colorConsole()

module.exports = function(err) {
  logger.error('Database Error | ', err)

  this.status(500).send({
    message: 'An error occurred.'
  })
}

'use strict'

let logger = require('tracer').colorConsole()

module.exports = function(err) {
  logger.error('Server Error | ', err)

  this.status(500).send({
    message: 'An error occurred.'
  })
}

Change error message to be a broader context