]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/signal/commands/QuitGroupCommand.java
Reformat code
[signal-cli] / src / main / java / org / asamk / signal / commands / QuitGroupCommand.java
index c39f298db2044c1361ff93b6b8427aaf1d5e9f59..67a6596b4a13e9b31b3092ecf02beb6ee870398d 100644 (file)
@@ -54,7 +54,7 @@ public class QuitGroupCommand implements JsonRpcLocalCommand {
 
         try {
             try {
-                final var results = m.sendQuitGroupMessage(groupId, groupAdmins);
+                final var results = m.quitGroup(groupId, groupAdmins);
                 final var timestamp = results.getTimestamp();
                 outputResult(outputWriter, timestamp);
                 handleSendMessageResults(results.getResults());
@@ -66,7 +66,11 @@ public class QuitGroupCommand implements JsonRpcLocalCommand {
                 m.deleteGroup(groupId);
             }
         } catch (IOException e) {
-            throw new IOErrorException("Failed to send message: " + e.getMessage());
+            throw new IOErrorException("Failed to send message: "
+                    + e.getMessage()
+                    + " ("
+                    + e.getClass().getSimpleName()
+                    + ")", e);
         } catch (GroupNotFoundException e) {
             throw new UserErrorException("Failed to send to group: " + e.getMessage());
         } catch (LastGroupAdminException e) {