Remove explicit error message when build.rs fails

This commit is contained in:
Ali Bektas 2025-03-07 18:27:29 +01:00
parent 8f2713564a
commit 93b1e7826a

View File

@ -139,10 +139,10 @@ impl GlobalState {
"Proc-macros and/or build scripts have changed and need to be rebuilt.\n\n", "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() { if self.fetch_build_data_error().is_err() {
status.health |= lsp_ext::Health::Error; status.health |= lsp_ext::Health::Warning;
message.push_str("Failed to run build scripts of some packages.\n\n"); 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 { if let Some(err) = &self.config_errors {
status.health |= lsp_ext::Health::Warning; status.health |= lsp_ext::Health::Warning;