Skip to content

Commit 3120953

Browse files
Update pkg/controller/registry/resolver/resolver.go
Co-authored-by: Ben Luddy <[email protected]>
1 parent 1429f13 commit 3120953

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/controller/registry/resolver/resolver.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,11 +555,11 @@ func (r *SatResolver) sortChannel(bundles []*Operator) ([]*Operator, error) {
555555
}
556556

557557
if len(headCandidates) > 1 {
558-
errInfo := "found more than one head for channel: "
558+
var names []string
559559
for _, v := range headCandidates {
560-
errInfo = errInfo + fmt.Sprintf("%s.%s-", v.sourceInfo.Channel, v.sourceInfo.Package)
560+
names = append(names, v.Identifier())
561561
}
562-
return nil, fmt.Errorf(fmt.Sprintf("%s, please check the `replaces`/`skipRange` fields of the operator bundles", errInfo))
562+
return nil, fmt.Errorf("found multiple channel heads: %v, please check the `replaces`/`skipRange` fields of the operator bundles", names)
563563

564564
} else if len(headCandidates) < 1 {
565565
return nil, fmt.Errorf("head of channel not found")

0 commit comments

Comments
 (0)