From 4e3b193c6b2ef7d674a15669ffaa580518415144 Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Wed, 5 Jun 2024 10:10:26 +0200 Subject: [PATCH] add missing errorcheck Signed-off-by: Christian Richter --- services/graph/pkg/identity/cache.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/graph/pkg/identity/cache.go b/services/graph/pkg/identity/cache.go index 2801e6a770d..5e2668fcaca 100644 --- a/services/graph/pkg/identity/cache.go +++ b/services/graph/pkg/identity/cache.go @@ -142,6 +142,9 @@ func (cache IdentityCache) GetGroup(ctx context.Context, groupID string) (libreg var group libregraph.Group if item := cache.groups.Get(groupID); item == nil { gatewayClient, err := cache.gatewaySelector.Next() + if err != nil { + return group, errorcode.New(errorcode.GeneralException, err.Error()) + } cs3GroupID := &cs3Group.GroupId{ OpaqueId: groupID, }