We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 01339d4 + 4c07f8b commit 749288eCopy full SHA for 749288e
crates/rust-analyzer/src/handlers/request.rs
@@ -2433,17 +2433,14 @@ fn run_rustfmt(
2433
}
2434
_ => {
2435
// Something else happened - e.g. `rustfmt` is missing or caught a signal
2436
- Err(LspError::new(
2437
- -32900,
2438
- format!(
2439
- r#"rustfmt exited with:
2440
- Status: {}
2441
- stdout: {captured_stdout}
2442
- stderr: {captured_stderr}"#,
2443
- output.status,
2444
- ),
2445
- )
2446
- .into())
+ tracing::error!(
+ ?command,
+ %output.status,
+ %captured_stdout,
+ %captured_stderr,
+ "rustfmt failed"
+ );
+ Ok(None)
2447
2448
};
2449
0 commit comments