adding back the exit code
This commit is contained in:
parent
29367d8f8b
commit
d2052cd2a3
|
@ -18,6 +18,9 @@ fn main() {
|
||||||
let mut out = Vec::new();
|
let mut out = Vec::new();
|
||||||
match run(&mut out) {
|
match run(&mut out) {
|
||||||
Ok(_) => std::io::stdout().write_all(&out).unwrap(),
|
Ok(_) => std::io::stdout().write_all(&out).unwrap(),
|
||||||
Err(_) => std::io::stderr().write_all(&out).unwrap(),
|
Err(_) => {
|
||||||
|
std::io::stderr().write_all(&out).unwrap();
|
||||||
|
std::process::exit(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue