Skip to content

Commit b1ecf6a

Browse files
author
interma
committed
better error message
1 parent 05e5ab2 commit b1ecf6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/source/source.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ func (ks *Kind) Start(handler handler.EventHandler, queue workqueue.RateLimiting
8383
if err != nil {
8484
switch err.(type) {
8585
case *meta.NoKindMatchError:
86-
return fmt.Errorf("must install CRD %s before calling Start", err.(*meta.NoKindMatchError).GroupKind)
86+
return fmt.Errorf("%s. Note: if %s is a CRD, should install it before calling Start",
87+
err, err.(*meta.NoKindMatchError).GroupKind)
8788
default:
8889
return err
8990
}

0 commit comments

Comments
 (0)