Skip to content

Commit e040967

Browse files
committed
Show when build scripts fail what the errors were
1 parent 2cff701 commit e040967

File tree

1 file changed

+3
-2
lines changed
  • src/tools/rust-analyzer/crates/rust-analyzer/src

1 file changed

+3
-2
lines changed

src/tools/rust-analyzer/crates/rust-analyzer/src/reload.rs

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

0 commit comments

Comments
 (0)