From 376fcba9ec1213ec77f37359e0248cf625b2f927 Mon Sep 17 00:00:00 2001 From: AsamK Date: Tue, 17 May 2022 20:22:56 +0200 Subject: [PATCH] Include reason for inactive group link in error message --- .../main/java/org/asamk/signal/manager/helper/GroupHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/main/java/org/asamk/signal/manager/helper/GroupHelper.java b/lib/src/main/java/org/asamk/signal/manager/helper/GroupHelper.java index 57f9c924..9d4f712c 100644 --- a/lib/src/main/java/org/asamk/signal/manager/helper/GroupHelper.java +++ b/lib/src/main/java/org/asamk/signal/manager/helper/GroupHelper.java @@ -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);