Skip to content

Commit

Permalink
Fix nil pointer error in registry sync when merging fails with an unk…
Browse files Browse the repository at this point in the history
…nown error
  • Loading branch information
JoshuaWilkes committed Sep 3, 2024
1 parent 402e8d0 commit fa789b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/granted/registry/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ func SyncProfileRegistries(ctx context.Context, interactive bool) error {
return fmt.Errorf("error after trying to merge profiles again for registry %s: %w", r.Config.Name, err)
}
}
if err != nil {
return fmt.Errorf("error after trying to merge profiles for registry %s: %w", r.Config.Name, err)
}

configFile = merged
}
Expand Down

0 comments on commit fa789b6

Please sign in to comment.