lib/commands.js
function onError(reason, commands) {
        if (typeof reason !== 'string' && typeof reason.message === 'string') {
            reason = reason.message;
        }
        return commands._replyFn(`An unexpected error \`${reason}\` occured and your commands could not be processed!`);
    }
function onError(reason, commands) {
        if (typeof reason !== 'string' && typeof reason.message === 'string') {
            reason = reason.message;
        }
        return commands._replyFn(`An unexpected error \`${reason}\` occured and your commands could not be processed!`);
    }
function onError ( reason , commands ) { if ( typeof reason !== 'string' && typeof reason . message === 'string' ) { reason = reason . message ; } return commands . _replyFn ( ` \` ${ reason } \` ` ) ; }
Handle Commands object that error'd durring execution

Post an error message in reply to post

@private

@param {string} reason Error Reason
@param {Commands} commands Commands that errored
@returns {Promise} Resolves after onError steps have completed
Handle Commands object that error d durring execution