Skip to content

Commit

Permalink
add kind to error message
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
  • Loading branch information
inteon committed May 4, 2023
1 parent f77e98e commit 9654963
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 @@ -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)
}
}

Expand Down

0 comments on commit 9654963

Please sign in to comment.