# Properly process files that cannot be open for a reason \(\#37170\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5001c037116386cb3f3316d5e4459fe78a4bd3fc

Requested commit: 5001c037116386cb3f3316d5e4459fe78a4bd3fc

Commit: 5001c037116386cb3f3316d5e4459fe78a4bd3fc

Tree: 0b43f0500c212ca5575668d649e737ea6fa28dff

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Properly process files that cannot be open for a reason (#37170)

Follow-up of https://github.com/zed-industries/zed/pull/36764

* Fix `anyhow!({e})` conversion lossing Collab error codes context when
opening a buffer remotely

* Use this context to only allow opening files that had not specific
Collab error code

Release Notes:

- N/A
```

## Parents

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

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