const { Listener } = require('discord-akairo');
const Logger = require('../../../util/Logger');

function exec(err) {
    Logger.warn('An error occured. Contact someone who might know what it means.');
    Logger.error(err);
}

module.exports = new Listener('error', exec, {
    emitter: 'commandHandler',
    eventName: 'error',
    category: 'commandHandler'
});

const { Listener } = require('discord-akairo');
const Logger = require('../../../util/Logger');

function exec(err) {
    Logger.warn('An error occured. Contact someone who might know what it means. For example, contact Evildeathpro#4442');
    Logger.error(err);
}

module.exports = new Listener('error', exec, {
    emitter: 'commandHandler',
    eventName: 'error',
    category: 'commandHandler'
});

Update error.js