]> nmode's Git Repositories - signal-cli/commitdiff
Include reason for inactive group link in error message
authorAsamK <asamk@gmx.de>
Tue, 17 May 2022 18:22:56 +0000 (20:22 +0200)
committerAsamK <asamk@gmx.de>
Tue, 17 May 2022 18:22:56 +0000 (20:22 +0200)
lib/src/main/java/org/asamk/signal/manager/helper/GroupHelper.java

index 57f9c92411430969f6f86bfefe2cc04476842617..9d4f712ce9a040d9b74e6fd263b033348d2ddcfb 100644 (file)
@@ -262,7 +262,7 @@ public class GroupHelper {
             groupJoinInfo = context.getGroupV2Helper()
                     .getDecryptedGroupJoinInfo(inviteLinkUrl.getGroupMasterKey(), inviteLinkUrl.getPassword());
         } catch (GroupLinkNotActiveException e) {
-            throw new InactiveGroupLinkException("Group link inactive", e);
+            throw new InactiveGroupLinkException("Group link inactive (reason: " + e.getReason() + ")", e);
         }
         final var groupChange = context.getGroupV2Helper()
                 .joinGroup(inviteLinkUrl.getGroupMasterKey(), inviteLinkUrl.getPassword(), groupJoinInfo);