Make command error logs more verbose, image server connection/job error handling changes

This commit is contained in:
TheEssem 2021-06-01 20:27:28 -05:00
parent 03ed19d239
commit bd221d5909
No known key found for this signature in database
GPG key ID: A3F9F02129092FCA
2 changed files with 6 additions and 4 deletions

View file

@ -144,7 +144,7 @@ module.exports = async (client, cluster, ipc, message) => {
content: "The request timed out before I could download that image. Try uploading your image somewhere else or reducing its size."
}, reference));
} else {
logger.error(error.toString());
logger.error(`Error occurred with command message ${message.cleanContent}: ${error.toString()}`);
try {
await client.createMessage(message.channel.id, Object.assign({
content: "Uh oh! I ran into an error while running this command. Please report the content of the attached file at the following link or on the esmBot Support server: <https://github.com/esmBot/esmBot/issues>"