better error log
This commit is contained in:
parent
c9f0ae1144
commit
6c5ab6dfd9
@ -143,7 +143,7 @@ class CommandHandler extends Observer {
|
||||
this._generateError(invoker, { error, type: 'command' });
|
||||
} else {
|
||||
invoker.command.error(now);
|
||||
this.logger.error(error.stack || error);
|
||||
this.logger.error(`Command ${invoker.command.name} errored:\nOptions: ${Object.keys(options)}\n${error.stack || error}`);
|
||||
this._generateError(invoker, { type: 'commandHandler' });
|
||||
}
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user