text: const { red, gray } = require('colors/safe');
  
  module.exports = (err, message, next) => {
    console.error(red(`❗  ${err.message}`));
    if (err.stack) console.error(gray(err.stack.substr(err.stack.indexOf('\n')+1)));
    next();
  };
  