Adjusted serverinfo, added message on premature image request end

This commit is contained in:
Essem 2022-01-12 19:48:58 -06:00
parent 64462f2202
commit 72efad0928
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
3 changed files with 12 additions and 9 deletions

View file

@ -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;