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.

workspace: Fix logging of errors in `prompt_err` (#42908)

Lukas Wirth599a217ea575
diff --git a/crates/workspace/src/notifications.rs b/crates/workspace/src/notifications.rs
index 70be040df7c..6c1156b8339 100644
--- a/crates/workspace/src/notifications.rs
+++ b/crates/workspace/src/notifications.rs
@@ -1071,9 +1071,9 @@ where
window.spawn(cx, async move |cx| {
let result = self.await;
if let Err(err) = result.as_ref() {
- log::error!("{err:?}");
+ log::error!("{err:#}");
if let Ok(prompt) = cx.update(|window, cx| {
- let mut display = format!("{err}");
+ let mut display = format!("{err:#}");
if !display.ends_with('\n') {
display.push('.');
display.push(' ')