Skip to content

Commit f7a66fd

Browse files
committed
Log flycheck errors
1 parent 7a8374c commit f7a66fd

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎crates/flycheck/src/lib.rs‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ impl FlycheckActor {
286286
tracing::debug!(?command,"will restart flycheck");
287287
matchCommandHandle::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-
ifres.is_err(){
309+
ifletErr(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));

0 commit comments

Comments
 (0)