Skip to content

Commit d7b9aa7

Browse files
committedAug 15, 2019
fix(registry) Fix incorrect error return and handle
The error from `matchGVKProvidedAPIs` is not captured correctly which may lead to incorrect error from previous functions to be returned instead. Signed-off-by: Vu Dinh <[email protected]>
1 parent b51ff88 commit d7b9aa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎pkg/schema/schema.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ func validateExamplesAnnotations(csv *v1alpha1.ClusterServiceVersion) error {
360360
return err
361361
}
362362

363-
if matchGVKProvidedAPIs(parsedExamples, providedAPIs) != nil {
363+
if err = matchGVKProvidedAPIs(parsedExamples, providedAPIs); err != nil {
364364
return err
365365
}
366366

0 commit comments

Comments
 (0)
Please sign in to comment.