Should stop undefined spamming in error channel

merge-requests/12/head
Bsian 2020-05-13 23:00:43 +01:00
parent 822034982b
commit ad5662c565
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ export default class Util {
public async handleError(error: Error, message?: Message, command?: Command, disable = true): Promise<void> {
try {
this.signale.error(error);
const info = { content: `\`\`\`js\n${error.stack}\n\`\`\``, embed: null };
const info = { content: `\`\`\`js\n${error.stack || error}\n\`\`\``, embed: null };
if (message) {
const embed = new RichEmbed();
embed.setColor('FF0000');