From 3ca9111f0cdf1de5eba8ead2332d0c034cc628ff Mon Sep 17 00:00:00 2001 From: Lauren Leach Date: Tue, 26 Nov 2024 11:35:49 -0800 Subject: [PATCH] err check --- pkg/connector/group.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/connector/group.go b/pkg/connector/group.go index 83477feb..cae39f88 100644 --- a/pkg/connector/group.go +++ b/pkg/connector/group.go @@ -183,6 +183,9 @@ func (o *groupResourceType) Grants( } if errOkta.ErrorCode == AccessDeniedErrorCode { err = bag.Next("") + if err != nil { + return nil, "", nil, err + } pageToken, err := bag.Marshal() if err != nil { return nil, "", nil, err