We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 815d88e commit ec3ea5eCopy full SHA for ec3ea5e
internal/util/operator-registry/package_manifest.go
@@ -22,14 +22,14 @@ import (
22
23
func ValidatePackageManifest(pkg *registry.PackageManifest) error {
24
if pkg.PackageName == "" {
25
- return errors.New("package name cannot be empty")
+ return fmt.Errorf("package name cannot be empty")
26
}
27
numChannels := len(pkg.Channels)
28
if numChannels == 0 {
29
- return errors.New("channels cannot be empty")
+ return fmt.Errorf("channels cannot be empty")
30
31
if pkg.DefaultChannelName == "" && numChannels > 1 {
32
- return errors.New("default channel cannot be empty")
+ return fmt.Errorf("default channel cannot be empty")
33
34
35
seen := map[string]struct{}{}
0 commit comments