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:
parent
f16b7b7a49
commit
4559de1bab
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user