# Return an error from project index tool when embedding query fails \(\#11264\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/5831d80f513fe374673dabe1346588ea5ad8cba1)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 5831d80f513fe374673dabe1346588ea5ad8cba1

Requested commit: 5831d80f513fe374673dabe1346588ea5ad8cba1

Commit: 5831d80f513fe374673dabe1346588ea5ad8cba1

Tree: 8a00267eb5e2a820820287894d0504d46912929c

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Return an error from project index tool when embedding query fails (#11264)

Previously, a failure to embed the search query (due to a rate limit
error) would appear the same as if there were no results.

* Avoid repeatedly embedding the search query for each worktree
* Unify tasks for searching all worktree

Release Notes:

- N/A
```

## Parents

- [4b767697af944ac638eef624d33eca42cb620eaf](https://git.cafe/gitcafe/zed/commit/4b767697af944ac638eef624d33eca42cb620eaf?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/5831d80f513fe374673dabe1346588ea5ad8cba1?format=markdown)
