Improve error message around failing to install dev extensions (#30711)

Closes #ISSUE

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Ben Kunkle 2025-05-14 12:22:17 -05:00 committed by GitHub
parent 1fb1fecb0a
commit 83498ebf2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -132,10 +132,13 @@ pub fn init(cx: &mut App) {
match install_task.await {
Ok(_) => {}
Err(err) => {
log::error!("Failed to install dev extension: {:?}", err);
workspace_handle
.update(cx, |workspace, cx| {
workspace.show_error(
&err.context("failed to install dev extension"),
// NOTE: using `anyhow::context` here ends up not printing
// the error
&format!("Failed to install dev extension: {}", err),
cx,
);
})