aboutsummaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
authorMinusGix <MinusGix@gmail.com>2019-04-26 22:18:42 +0200
committerGitHub <noreply@github.com>2019-04-26 22:18:42 +0200
commit4559de1babffa7c88b9fefe725fc1200c176e3e5 (patch)
tree697ea7cbfbb537eccc7105f2a4e3ea75bba5125e /server/src
parentMerge pull request #61 from MinusGix/patch-1 (diff)
downloadhackchat-4559de1babffa7c88b9fefe725fc1200c176e3e5.tar.gz
hackchat-4559de1babffa7c88b9fefe725fc1200c176e3e5.zip
Update CommandManager.js
Diffstat (limited to 'server/src')
-rw-r--r--server/src/serverLib/CommandManager.js6
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;