blergh
This commit is contained in:
parent
0d0c17f41f
commit
e4a18b415a
@ -143,7 +143,7 @@ class CommandHandler extends Observer {
|
|||||||
this._generateError(invoker, { error, type: 'command' });
|
this._generateError(invoker, { error, type: 'command' });
|
||||||
} else {
|
} else {
|
||||||
invoker.command.error(now);
|
invoker.command.error(now);
|
||||||
this.logger.error(`Command ${invoker.command.name} errored:\nOptions: ${Object.keys(options)}\n${error.stack || error}`);
|
this.logger.error(`Command ${invoker.command.name} errored:\nOptions:\n${Object.keys(options).map((key) => `[${key}: ${options[key]._rawValue}]`).join('\n')}\n${error.stack || error}`);
|
||||||
this._generateError(invoker, { type: 'commandHandler' });
|
this._generateError(invoker, { type: 'commandHandler' });
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user