From 8a742fbb5c775343bb65d2a332338988a84c2f3d Mon Sep 17 00:00:00 2001 From: Vince Prignano Date: Thu, 27 Apr 2023 08:27:08 -0700 Subject: [PATCH] Kind source should expose type information on timeout Signed-off-by: Vince Prignano --- pkg/internal/source/kind.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/source/kind.go b/pkg/internal/source/kind.go index 7ba183a74d..6bf891a516 100644 --- a/pkg/internal/source/kind.go +++ b/pkg/internal/source/kind.go @@ -112,6 +112,6 @@ func (ks *Kind) WaitForSync(ctx context.Context) error { if errors.Is(ctx.Err(), context.Canceled) { return nil } - return errors.New("timed out waiting for cache to be synced") + return fmt.Errorf("timed out waiting for cache to be synced for Kind %T", ks.Type) } }