File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ impl FlycheckActor {
286286 tracing:: debug!( ?command, "will restart flycheck" ) ;
287287 match CommandHandle :: spawn ( command) {
288288 Ok ( command_handle) => {
289- tracing:: debug!( command = formatted_command, "did restart flycheck" ) ;
289+ tracing:: debug!( command = formatted_command, "did restart flycheck" ) ;
290290 self . command_handle = Some ( command_handle) ;
291291 self . report_progress ( Progress :: DidStart ) ;
292292 }
@@ -306,10 +306,11 @@ impl FlycheckActor {
306306 let formatted_handle = format ! ( "{:?}" , command_handle) ;
307307
308308 let res = command_handle. join ( ) ;
309- if res . is_err ( ) {
309+ if let Err ( error ) = & res {
310310 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
313314 ) ;
314315 }
315316 self . report_progress ( Progress :: DidFinish ( res) ) ;
You can’t perform that action at this time.
0 commit comments