# agent: Better error messages when tool fails \(\#55616\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 193a8c75a3f8a04c8bfc4cec83157b0aa2e5cd7c

Requested commit: 193a8c75a3f8a04c8bfc4cec83157b0aa2e5cd7c

Commit: 193a8c75a3f8a04c8bfc4cec83157b0aa2e5cd7c

Tree: 84d2d5a28fb5027e6f0ced20854525c19e4903ad

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
agent: Better error messages when tool fails (#55616)

Does not actually seem useful to the LLM to include `Failed to receive
tool input: ...` in the error message. We now only include the actual
error.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

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

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