File tree 1 file changed +5
-4
lines changed
src/tools/rust-analyzer/crates/flycheck/src
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ impl FlycheckActor {
286
286
tracing:: debug!( ?command, "will restart flycheck" ) ;
287
287
match CommandHandle :: spawn ( command) {
288
288
Ok ( command_handle) => {
289
- tracing:: debug!( command = formatted_command, "did restart flycheck" ) ;
289
+ tracing:: debug!( command = formatted_command, "did restart flycheck" ) ;
290
290
self . command_handle = Some ( command_handle) ;
291
291
self . report_progress ( Progress :: DidStart ) ;
292
292
}
@@ -306,10 +306,11 @@ impl FlycheckActor {
306
306
let formatted_handle = format ! ( "{:?}" , command_handle) ;
307
307
308
308
let res = command_handle. join ( ) ;
309
- if res . is_err ( ) {
309
+ if let Err ( error ) = & res {
310
310
tracing:: error!(
311
- "Flycheck failed to run the following command: {}" ,
312
- formatted_handle
311
+ "Flycheck failed to run the following command: {}, error={}" ,
312
+ formatted_handle,
313
+ error
313
314
) ;
314
315
}
315
316
self . report_progress ( Progress :: DidFinish ( res) ) ;
You can’t perform that action at this time.
0 commit comments