Skip to content

Commit

Permalink
fix(opm-index-add) Throw error when a bundle is invalid
Browse files Browse the repository at this point in the history
With the introduction of operator-framework#503, when a bundle from the list of bundles
being added with the `opm index add` command was invalid, opm was not
throwing an error, and was building the index with the valid bundles
instead, even when the `permissive` mode was not enabled. This PR
fixes the issue.
  • Loading branch information
anik120 committed Nov 18, 2020
1 parent fded0bf commit 73f57bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/registry/input_stream.go
Expand Up @@ -142,7 +142,7 @@ func (r *ReplacesInputStream) Next() (*ImageInput, error) {
delete(r.packages, pkg)
}

return image, nil
return image, utilerrors.NewAggregate(errs)
}

// No viable bundle found in the package, can't parse it any further
Expand Down

0 comments on commit 73f57bc

Please sign in to comment.