]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/signal/commands/QuitGroupCommand.java
Add --delete-account argument to completely delete an account
[signal-cli] / src / main / java / org / asamk / signal / commands / QuitGroupCommand.java
index d8a865854e3110b3cd3f3d39d3a2ca8741a55dd8..e47728d5278f49e69c3778e4795c48dc1112d4ee 100644 (file)
@@ -16,7 +16,6 @@ import org.asamk.signal.util.Util;
 
 import java.io.IOException;
 
-import static org.asamk.signal.util.ErrorUtils.handleAssertionError;
 import static org.asamk.signal.util.ErrorUtils.handleTimestampAndSendMessageResults;
 
 public class QuitGroupCommand implements LocalCommand {
@@ -42,12 +41,7 @@ public class QuitGroupCommand implements LocalCommand {
             handleTimestampAndSendMessageResults(writer, results.first(), results.second());
         } catch (IOException e) {
             throw new IOErrorException("Failed to send message: " + e.getMessage());
-        } catch (AssertionError e) {
-            handleAssertionError(e);
-            throw e;
-        } catch (GroupNotFoundException e) {
-            throw new UserErrorException("Failed to send to group: " + e.getMessage());
-        } catch (NotAGroupMemberException e) {
+        } catch (GroupNotFoundException | NotAGroupMemberException e) {
             throw new UserErrorException("Failed to send to group: " + e.getMessage());
         }
     }