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

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth
2025-11-17 20:39:50 +01:00
committed by GitHub
parent b0a7defd09
commit 599a217ea5
+2 -2
View File
@@ -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(' ')