Print raw error instead of trying to stringify it
All checks were successful
NodBot PE Dockerization / build (push) Successful in 20s
All checks were successful
NodBot PE Dockerization / build (push) Successful in 20s
This commit is contained in:
parent
46e5079eaf
commit
8039f8f1c7
@ -22,7 +22,7 @@ module.exports = {
|
||||
const replyEmbed = fn.embeds.text(commandData);
|
||||
message.reply({ embeds: [ replyEmbed ]});
|
||||
|
||||
const errorEmbed = fn.embeds.error(`An error has occurred in command ${this.name}:\n${JSON.stringify(err)}`);
|
||||
const errorEmbed = fn.embeds.error(`An error has occurred in command ${this.name}:\n${err}`);
|
||||
fn.sendAlert(errorEmbed, message.client);
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user