We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e122f5 commit bd698b9Copy full SHA for bd698b9
src/tools/tidy/src/main.rs
@@ -16,9 +16,11 @@
16
17
extern crate regex;
18
19
+use std::env;
20
use std::fs;
21
+use std::io::{self, Write};
22
use std::path::{PathBuf, Path};
-use std::env;
23
+use std::process;
24
25
macro_rules! t {
26
($e:expr, $p:expr) => (match $e {
@@ -60,7 +62,8 @@ fn main() {
60
62
}
61
63
64
if bad {
- panic!("some tidy checks failed");
65
+ writeln!(io::stderr(), "some tidy checks failed").expect("could not write to stderr");
66
+ process::exit(1);
67
68
69
0 commit comments