Make command error logs more verbose, image server connection/job error handling changes
This commit is contained in:
parent
03ed19d239
commit
bd221d5909
2 changed files with 6 additions and 4 deletions
|
@ -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>"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue