Skip to content

Commit

Permalink
Merge pull request #187 from nimrodshn/fix_channel_group
Browse files Browse the repository at this point in the history
Return clear error message when no version is found
  • Loading branch information
openshift-merge-robot authored Nov 24, 2020
2 parents 17c3926 + 253e2af commit a06e84c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/create/cluster/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,11 @@ func getVersionList(client *cmv1.Client, channelGroup string) (versionList []str
versionList = append(versionList, strings.Replace(v.ID(), "openshift-v", "", 1))
}

if len(versionList) == 0 {
err = fmt.Errorf("Could not find versions for the provided channel-group: '%s'", channelGroup)
return
}

return
}

Expand Down

0 comments on commit a06e84c

Please sign in to comment.