Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 225f7e0

Browse files
committed
lintcheck: warn if checking a program results in bad exit status
1 parent 6ee1469 commit 225f7e0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lintcheck/src/main.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,14 @@ impl Crate {
294294
});
295295
let stdout = String::from_utf8_lossy(&all_output.stdout);
296296
let stderr = String::from_utf8_lossy(&all_output.stderr);
297+
let status = &all_output.status;
298+
299+
if !status.success() {
300+
eprintln!(
301+
"\nWARNING: bad exit status after checking {} {} \n",
302+
self.name, self.version
303+
);
304+
}
297305

298306
if fix {
299307
if let Some(stderr) = stderr

0 commit comments

Comments
 (0)