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.

gpui_linux: Improve error message when X11 and Wayland feature flags are missing (#58685)

Zax71dae3e574e49b
diff --git a/crates/gpui_linux/src/linux.rs b/crates/gpui_linux/src/linux.rs
index bafdc2e5241..7202248e376 100644
--- a/crates/gpui_linux/src/linux.rs
+++ b/crates/gpui_linux/src/linux.rs
@@ -52,6 +52,8 @@ pub fn current_platform(headless: bool) -> Rc<dyn gpui::Platform> {
"Headless" => Rc::new(LinuxPlatform {
inner: HeadlessClient::new(),
}),
- _ => unreachable!(),
+ _ => unreachable!(
+ r#"At least one of the "wayland" or "x11" features must be enabled on gpui_linux or gpui_platform."#
+ ),
}
}