Adjusted serverinfo, added message on premature image request end
This commit is contained in:
parent
64462f2202
commit
72efad0928
3 changed files with 12 additions and 9 deletions
|
@ -107,6 +107,7 @@ class ImageCommand extends Command {
|
|||
name: `${this.constructor.command}.${type}`
|
||||
};
|
||||
} catch (e) {
|
||||
if (e === "Request ended prematurely due to a closed connection") return "This image job couldn't be completed because the server it was running on went down. Try running your command again.";
|
||||
if (e === "Job timed out" || e === "Timeout") return "The image is taking too long to process (>=15 minutes), so the job was cancelled. Try using a smaller image.";
|
||||
if (e.toString().includes("Not connected to image server") || e === "No available servers") return "I can't seem to contact the image servers, they might be down or still trying to start up. Please wait a little bit.";
|
||||
throw e;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue