Add hint to sticker upload error message

This commit is contained in:
AsamK 2021-07-31 17:55:36 +02:00
parent 9e72248e1b
commit 07893546d0

View file

@ -35,7 +35,7 @@ public class UploadStickerPackCommand implements LocalCommand {
var url = m.uploadStickerPack(path);
writer.println("{}", url);
} catch (IOException e) {
throw new IOErrorException("Upload error: " + e.getMessage());
throw new IOErrorException("Upload error (maybe image size too large):" + e.getMessage());
} catch (StickerPackInvalidException e) {
throw new UserErrorException("Invalid sticker pack: " + e.getMessage());
}