Skip to content

Commit 1914026

Browse files
committed
adds err checking
1 parent 8616ee2 commit 1914026

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

internal/core/integrations/external_entity_provider_service.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ func (s externalEntityProviderService) syncOrgs(c echo.Context) error {
6969
}
7070

7171
func (s externalEntityProviderService) RefreshExternalEntityProviderProjects(ctx core.Context, org models.Org, user string) error {
72-
s.syncOrgs(ctx)
72+
err := s.syncOrgs(ctx)
73+
if err != nil {
74+
slog.Warn("could not sync organizations", "orgID", org.GetID(), "user", user, "err", err)
75+
return err
76+
}
7377
_, err, shared := s.singleFlightGroup.Do(org.ID.String()+"/"+user, func() (any, error) {
7478
if org.ExternalEntityProviderID == nil {
7579
return nil, fmt.Errorf("organization %s does not have an external entity provider configured", org.GetID())

0 commit comments

Comments
 (0)