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
This commit is contained in:
Kirill Bulatov
2025-08-29 14:14:27 +00:00
committed by GitHub
parent 20d32d111c
commit 5001c03711
4 changed files with 45 additions and 33 deletions
+1 -1
View File
@@ -1117,7 +1117,7 @@ impl ChannelClient {
}
Err(error) => {
log::error!(
"{}:error handling message. type:{}, error:{}",
"{}:error handling message. type:{}, error:{:#}",
this.name,
type_name,
format!("{error:#}").lines().fold(