@Override
public void attachToSubparser(final Subparser subparser) {
+ subparser.help("Upload a new sticker pack, consisting of a manifest file and the stickers images.");
subparser.addArgument("path")
.help("The path of the manifest.json or a zip file containing the sticker pack you wish to upload.");
}
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());
}