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.

Use more generic error messages in gpui (#33651)

Kirill Bulatove37ef2a99110
diff --git a/crates/gpui/src/platform.rs b/crates/gpui/src/platform.rs
index ac21c5dea12..277f2d9ab87 100644
--- a/crates/gpui/src/platform.rs
+++ b/crates/gpui/src/platform.rs
@@ -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(),
)
}
diff --git a/crates/gpui/src/platform/windows/window.rs b/crates/gpui/src/platform/windows/window.rs
index c363d5854de..27c843932bb 100644
--- a/crates/gpui/src/platform/windows/window.rs
+++ b/crates/gpui/src/platform/windows/window.rs
@@ -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 {