]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/signal/commands/BlockCommand.java
Fix error type for dbus rate limit challenge
[signal-cli] / src / main / java / org / asamk / signal / commands / BlockCommand.java
index 516224f550cd6790eec90d9d0fd4c81c615d375e..1ec1036cd828defa7bc508c2c5aa38aedad98239 100644 (file)
@@ -52,6 +52,8 @@ public class BlockCommand implements JsonRpcLocalCommand {
             for (var groupId : CommandUtil.getGroupIds(groupIdStrings)) {
                 try {
                     m.setGroupBlocked(groupId, true);
+                } catch (NotMasterDeviceException e) {
+                    throw new UserErrorException("This command doesn't work on linked devices.");
                 } catch (GroupNotFoundException e) {
                     logger.warn("Group not found {}: {}", groupId.toBase64(), e.getMessage());
                 } catch (IOException e) {