diff --git a/pkg/internal/source/kind.go b/pkg/internal/source/kind.go index a4f46c9f7d..e0991fd415 100644 --- a/pkg/internal/source/kind.go +++ b/pkg/internal/source/kind.go @@ -203,7 +203,7 @@ func (ks *Kind) WaitForSync(ctx context.Context) error { if errors.Is(ctx.Err(), context.Canceled) { return nil } - return errors.New("timed out trying to get an informer from cache and waiting for cache to be synced") + return fmt.Errorf("timed out trying to get an informer from cache and waiting for cache to be synced for Kind %T", ks.Type) } }