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.

Report which requested font families are not present on the system (#3006)

Marshall Bowersd0b15ed9408b
diff --git a/crates/gpui/src/font_cache.rs b/crates/gpui/src/font_cache.rs
index 4f0d4fd4615..b2dc79c87b1 100644
--- a/crates/gpui/src/font_cache.rs
+++ b/crates/gpui/src/font_cache.rs
@@ -98,7 +98,12 @@ impl FontCache {
}
Err(anyhow!(
- "could not find a non-empty font family matching one of the given names"
+ "could not find a non-empty font family matching one of the given names: {}",
+ names
+ .iter()
+ .map(|name| format!("`{name}`"))
+ .collect::<Vec<_>>()
+ .join(", ")
))
}