]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/signal/commands/UploadStickerPackCommand.java
Add hint to sticker upload error message
[signal-cli] / src / main / java / org / asamk / signal / commands / UploadStickerPackCommand.java
index 1ed14e213e1d0eb383874d1778931842d950e105..095c7d9697221174daf813cf026df43ded264710 100644 (file)
@@ -21,6 +21,7 @@ public class UploadStickerPackCommand implements LocalCommand {
 
     @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.");
     }
@@ -34,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());
         }