Use more generic error messages in gpui (#33651)

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

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov
2025-06-30 13:40:31 +00:00
committed by GitHub
parent 1c05062482
commit e37ef2a991
2 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ pub fn guess_compositor() -> &'static str {
pub(crate) fn current_platform(_headless: bool) -> Rc<dyn Platform> {
Rc::new(
WindowsPlatform::new()
.inspect_err(|err| show_error("Error: Zed failed to launch", err.to_string()))
.inspect_err(|err| show_error("Failed to launch", err.to_string()))
.unwrap(),
)
}
+2 -6
View File
@@ -1299,12 +1299,8 @@ mod windows_renderer {
size: Default::default(),
transparent,
};
BladeRenderer::new(context, &raw, config).inspect_err(|err| {
show_error(
"Error: Zed failed to initialize BladeRenderer",
err.to_string(),
)
})
BladeRenderer::new(context, &raw, config)
.inspect_err(|err| show_error("Failed to initialize BladeRenderer", err.to_string()))
}
struct RawWindow {