Skip to content

Commit

Permalink
lintcheck: warn if checking a program results in bad exit status
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Mar 31, 2021
1 parent 6ee1469 commit 225f7e0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lintcheck/src/main.rs
Expand Up @@ -294,6 +294,14 @@ impl Crate {
});
let stdout = String::from_utf8_lossy(&all_output.stdout);
let stderr = String::from_utf8_lossy(&all_output.stderr);
let status = &all_output.status;

if !status.success() {
eprintln!(
"\nWARNING: bad exit status after checking {} {} \n",
self.name, self.version
);
}

if fix {
if let Some(stderr) = stderr
Expand Down

0 comments on commit 225f7e0

Please sign in to comment.