Skip to content

Commit 230b7f8

Browse files
committed
Fixups after accepting suggested error changes
Signed-off-by: Brett Tofel <[email protected]>
1 parent 93eae4f commit 230b7f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/resolve/catalog.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func CatalogWalker(listCatalogs func(context.Context, ...client.ListOption) ([]c
270270

271271
// If no catalogs were processed at all, return a 'no catalogs' error
272272
if !processedCatalogs {
273-
return errors.New("no enabled catalogs found")
273+
return fmt.Errorf("no enabled catalogs found")
274274
}
275275

276276
// Return an error if no valid bundle was found in any processed catalog

internal/resolve/catalog_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ func TestAllCatalogsDisabled(t *testing.T) {
992992
ce := buildFooClusterExtension(pkgName, []string{}, ">=1.0.0", ocv1alpha1.UpgradeConstraintPolicyCatalogProvided)
993993
_, _, _, err := r.Resolve(context.Background(), ce, nil)
994994
require.Error(t, err)
995-
assert.Contains(t, err.Error(), "no enabled catalogs found for package")
995+
assert.Contains(t, err.Error(), "no enabled catalogs found")
996996
}
997997

998998
func TestSomeCatalogsDisabled(t *testing.T) {

0 commit comments

Comments
 (0)