# acp: Use ACP error types in read_text_file \(\#38863\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f303a461c4a839b6dbd515dec0c3bc1dd4e88881

Requested commit: f303a461c4a839b6dbd515dec0c3bc1dd4e88881

Commit: f303a461c4a839b6dbd515dec0c3bc1dd4e88881

Tree: 7dded9d703145eee7c1f50c1db8d9541bafa70bf

Author: Ben Brandt

Committer: GitHub

## Message

```
acp: Use ACP error types in read_text_file (#38863)

- Map path lookup and internal failures to acp::Error 
- Return INVALID_PARAMS for reads beyond EOF

Release Notes:

- acp: Return more informative error types from `read_text_file` to
agents
```

## Parents

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

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