Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--crates/rust-analyzer/src/reload.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/reload.rs b/crates/rust-analyzer/src/reload.rs
index 733a7c359b..273be22d8d 100644
--- a/crates/rust-analyzer/src/reload.rs
+++ b/crates/rust-analyzer/src/reload.rs
@@ -139,9 +139,10 @@ impl GlobalState {
"Proc-macros and/or build scripts have changed and need to be rebuilt.\n\n",
);
}
- if self.fetch_build_data_error().is_err() {
- status.health |= lsp_ext::Health::Warning;
+ if let Err(build_data_err) = self.fetch_build_data_error() {
+ status.health |= lsp_ext::Health::Error;
message.push_str("Failed to run build scripts of some packages.\n\n");
+ format_to!(message, "{build_data_err}\n");
}
if let Some(err) = &self.config_errors {
status.health |= lsp_ext::Health::Warning;