]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/signal/commands/QuitGroupCommand.java
Exit immediately if an uncaught error is thrown on the main thread
[signal-cli] / src / main / java / org / asamk / signal / commands / QuitGroupCommand.java
index 03bf232ba66aba3266554391b0dfe1e6fa892b88..67a6596b4a13e9b31b3092ecf02beb6ee870398d 100644 (file)
@@ -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) {