From f3222b810f3eeda3e6af600c895f56f1e404622e Mon Sep 17 00:00:00 2001 From: Alannah Carr Date: Mon, 24 May 2021 13:49:21 -0700 Subject: [PATCH] continue if unshare fails --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index ca6bb78..ee9de3f 100644 --- a/client.go +++ b/client.go @@ -2338,6 +2338,7 @@ func (c *ToznySDKV3) UnshareSecretBeforeDelete(ctx context.Context, options Unsh if err != nil { msg := fmt.Errorf("UnshareSecretBeforeDelete: failed to remove secret %s from group %s. Err: %+v", secretID, group.GroupID, err) processingErrors = append(processingErrors, msg) + continue } // If the group only contains the secret, delete the group if numberRecordsInGroup == 1 && listGroupRecords.ResultList[0].Metadata.RecordID == secretID.String() {