Skip to content

Commit 8a742fb

Browse files
committed
Kind source should expose type information on timeout
Signed-off-by: Vince Prignano <[email protected]>
1 parent a24b949 commit 8a742fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/internal/source/kind.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,6 @@ func (ks *Kind) WaitForSync(ctx context.Context) error {
112112
if errors.Is(ctx.Err(), context.Canceled) {
113113
return nil
114114
}
115-
return errors.New("timed out waiting for cache to be synced")
115+
return fmt.Errorf("timed out waiting for cache to be synced for Kind %T", ks.Type)
116116
}
117117
}

0 commit comments

Comments
 (0)