Skip to content

Commit 0ef0753

Browse files
authored
Merge pull request #2290 from vincepri/errors-more-info
🌱 Kind source should expose type information on timeout
2 parents dca0be7 + 8a742fb commit 0ef0753

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)