adding back the exit code

This commit is contained in:
Jakub Doka 2024-11-08 21:53:24 +01:00
parent 29367d8f8b
commit d2052cd2a3
No known key found for this signature in database
GPG key ID: C6E9A89936B8C143

View file

@ -18,6 +18,9 @@ fn main() {
let mut out = Vec::new();
match run(&mut out) {
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);
}
}
}