1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

Update CommandManager.js

This commit is contained in:
MinusGix 2019-04-26 15:18:42 -05:00 committed by GitHub
parent f16b7b7a49
commit 4559de1bab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;