Skip to content

Commit

Permalink
Remove explicit error message when build.rs fails
Browse files Browse the repository at this point in the history
  • Loading branch information
alibektas committed Mar 7, 2025
1 parent 8f27135 commit 93b1e78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/rust-analyzer/src/reload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 93b1e78

Please sign in to comment.