From e4a18b415a746c9e896b4f63ecd31ba8d210aa0f Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sun, 10 Jul 2022 11:07:19 +0300 Subject: [PATCH] blergh --- src/structure/components/observers/CommandHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structure/components/observers/CommandHandler.js b/src/structure/components/observers/CommandHandler.js index b6e404d..2067de9 100644 --- a/src/structure/components/observers/CommandHandler.js +++ b/src/structure/components/observers/CommandHandler.js @@ -143,7 +143,7 @@ class CommandHandler extends Observer { this._generateError(invoker, { error, type: 'command' }); } else { 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' }); } return;