From 93b1e7826a9e44f4f2846d0c32b4cb893af70ca4 Mon Sep 17 00:00:00 2001 From: Ali Bektas Date: Fri, 7 Mar 2025 18:27:29 +0100 Subject: [PATCH] Remove explicit error message when build.rs fails --- crates/rust-analyzer/src/reload.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/rust-analyzer/src/reload.rs b/crates/rust-analyzer/src/reload.rs index 273be22d8d..3aec2582d1 100644 --- a/crates/rust-analyzer/src/reload.rs +++ b/crates/rust-analyzer/src/reload.rs @@ -139,10 +139,10 @@ impl GlobalState { "Proc-macros and/or build scripts have changed and need to be rebuilt.\n\n", ); } - if let Err(build_data_err) = self.fetch_build_data_error() { - status.health |= lsp_ext::Health::Error; + if self.fetch_build_data_error().is_err() { + status.health |= lsp_ext::Health::Warning; message.push_str("Failed to run build scripts of some packages.\n\n"); - format_to!(message, "{build_data_err}\n"); + message.push_str("Please refer to the logs for more details on the errors."); } if let Some(err) = &self.config_errors { status.health |= lsp_ext::Health::Warning;