Skip to content

Commit 264318d

Browse files
authored
Fix nil pointer error in registry sync when merging fails with an unknown error (#744)
1 parent 402e8d0 commit 264318d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/granted/registry/sync.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ func SyncProfileRegistries(ctx context.Context, interactive bool) error {
101101
return fmt.Errorf("error after trying to merge profiles again for registry %s: %w", r.Config.Name, err)
102102
}
103103
}
104+
if err != nil {
105+
return fmt.Errorf("error after trying to merge profiles for registry %s: %w", r.Config.Name, err)
106+
}
104107

105108
configFile = merged
106109
}

0 commit comments

Comments
 (0)