diff options
author | MinusGix <MinusGix@gmail.com> | 2019-04-26 22:18:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-26 22:18:42 +0200 |
commit | 4559de1babffa7c88b9fefe725fc1200c176e3e5 (patch) | |
tree | 697ea7cbfbb537eccc7105f2a4e3ea75bba5125e /server/src/serverLib | |
parent | Merge pull request #61 from MinusGix/patch-1 (diff) | |
download | hackchat-4559de1babffa7c88b9fefe725fc1200c176e3e5.tar.gz hackchat-4559de1babffa7c88b9fefe725fc1200c176e3e5.zip |
Update CommandManager.js
Diffstat (limited to 'server/src/serverLib')
-rw-r--r-- | server/src/serverLib/CommandManager.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/serverLib/CommandManager.js b/server/src/serverLib/CommandManager.js index a99d0a9..683d940 100644 --- a/server/src/serverLib/CommandManager.js +++ b/server/src/serverLib/CommandManager.js @@ -268,13 +268,13 @@ class CommandManager { try { return await command.run(this.core, server, socket, data); } catch (err) { - let errText = `Failed to execute '${command.info.name}': ${err}`; - console.log(errText); + let errText = `Failed to execute '${command.info.name}': `; + console.log(errText + err.stack); this.handleCommand(server, socket, { cmd: 'socketreply', cmdKey: server.cmdKey, - text: errText + text: errText + err.toString() }); return null; |