mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-25 11:17:13 +00:00
Don't show notifications on failed rustfmt calls
This commit is contained in:
parent
70cbf8332a
commit
4c07f8b25a
@ -2433,17 +2433,14 @@ fn run_rustfmt(
|
||||
}
|
||||
_ => {
|
||||
// Something else happened - e.g. `rustfmt` is missing or caught a signal
|
||||
Err(LspError::new(
|
||||
-32900,
|
||||
format!(
|
||||
r#"rustfmt exited with:
|
||||
Status: {}
|
||||
stdout: {captured_stdout}
|
||||
stderr: {captured_stderr}"#,
|
||||
output.status,
|
||||
),
|
||||
)
|
||||
.into())
|
||||
tracing::error!(
|
||||
?command,
|
||||
%output.status,
|
||||
%captured_stdout,
|
||||
%captured_stderr,
|
||||
"rustfmt failed"
|
||||
);
|
||||
Ok(None)
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user