diff --git a/x/group/keeper/keeper_test.go b/x/group/keeper/keeper_test.go index ba1a7d5337a9..9aa677513312 100644 --- a/x/group/keeper/keeper_test.go +++ b/x/group/keeper/keeper_test.go @@ -2759,7 +2759,7 @@ func (s *TestSuite) TestLeaveGroup() { math.NewDecFromInt64(0), }, { - "valid testcase: decision policy is not present", + "valid testcase: decision policy is not present (and group total weight can be 0)", &group.MsgLeaveGroup{ GroupId: groupID2, Address: member1.String(), diff --git a/x/group/keeper/msg_server.go b/x/group/keeper/msg_server.go index d4f84a3e4a56..06c8f008f178 100644 --- a/x/group/keeper/msg_server.go +++ b/x/group/keeper/msg_server.go @@ -102,7 +102,7 @@ func (k Keeper) UpdateGroupMembers(goCtx context.Context, req *group.MsgUpdateGr action := func(g *group.GroupInfo) error { totalWeight, err := math.NewNonNegativeDecFromString(g.TotalWeight) if err != nil { - return err + return sdkerrors.Wrap(err, "group total weight") } for i := range req.MemberUpdates { if err := k.assertMetadataLength(req.MemberUpdates[i].Metadata, "group member metadata"); err != nil {