Skip to content

Commit 93b1e78

Browse files
committed
Remove explicit error message when build.rs fails
1 parent 8f27135 commit 93b1e78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/rust-analyzer/src/reload.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ impl GlobalState {
139139
"Proc-macros and/or build scripts have changed and need to be rebuilt.\n\n",
140140
);
141141
}
142-
if let Err(build_data_err) = self.fetch_build_data_error() {
143-
status.health |= lsp_ext::Health::Error;
142+
if self.fetch_build_data_error().is_err() {
143+
status.health |= lsp_ext::Health::Warning;
144144
message.push_str("Failed to run build scripts of some packages.\n\n");
145-
format_to!(message, "{build_data_err}\n");
145+
message.push_str("Please refer to the logs for more details on the errors.");
146146
}
147147
if let Some(err) = &self.config_errors {
148148
status.health |= lsp_ext::Health::Warning;

0 commit comments

Comments
 (0)