Skip to content

Commit

Permalink
Kind source should expose type information on timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Vince Prignano <vincepri@redhat.com>
  • Loading branch information
vincepri committed Apr 27, 2023
1 parent a24b949 commit 8a742fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/internal/source/kind.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 8a742fb

Please sign in to comment.