From 4559de1babffa7c88b9fefe725fc1200c176e3e5 Mon Sep 17 00:00:00 2001 From: MinusGix Date: Fri, 26 Apr 2019 15:18:42 -0500 Subject: Update CommandManager.js --- server/src/serverLib/CommandManager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server') 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; -- cgit v1.2.1