]> git.lizzy.rs Git - rust.git/commitdiff
Don't discard flycheck error messages
authorLukas Wirth <lukastw97@gmail.com>
Sat, 27 Nov 2021 17:57:51 +0000 (18:57 +0100)
committerLukas Wirth <lukastw97@gmail.com>
Sat, 27 Nov 2021 17:57:51 +0000 (18:57 +0100)
crates/flycheck/src/lib.rs

index d34c9e147229dd9d027879b501037d4880471c23..0a4f9d578a525058f3a1abc6a15fd0d19012e145 100644 (file)
@@ -333,7 +333,7 @@ fn run(self, command: Command) -> io::Result<()> {
                     output.status
                 )))
             }
-            Err(e) => Err(e),
+            Err(e) => Err(io::Error::new(e.kind(), format!("{:?}: {}", e, error))),
         }
     }
 }