Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Silence "minidump endpoint not set" errors' backtraces in the logs (#36404)

Kirill Bulatovd83f341d2733
diff --git a/crates/zed/src/reliability.rs b/crates/zed/src/reliability.rs
index c27f4cb0a86..0a54572f6bf 100644
--- a/crates/zed/src/reliability.rs
+++ b/crates/zed/src/reliability.rs
@@ -550,7 +550,8 @@ async fn upload_previous_panics(
pub async fn upload_previous_minidumps(http: Arc<HttpClientWithUrl>) -> anyhow::Result<()> {
let Some(minidump_endpoint) = MINIDUMP_ENDPOINT.as_ref() else {
- return Err(anyhow::anyhow!("Minidump endpoint not set"));
+ log::warn!("Minidump endpoint not set");
+ return Ok(());
};
let mut children = smol::fs::read_dir(paths::logs_dir()).await?;