Fix exit codes

This commit is contained in:
Mario Krehl 2016-09-07 10:16:36 +02:00
parent 5ea5f588a9
commit e6d48cb31a

View file

@ -189,7 +189,7 @@ fn main() {
if !exit_status.success() {
debug!("{} exited with non-zero exit code: {:?}", subcommand, exit_status);
println!("{} exited with non-zero exit code", subcommand);
exit(exit_status.code().unwrap_or(42));
exit(exit_status.code().unwrap_or(1));
}
debug!("Successful exit!");
},
@ -208,7 +208,7 @@ fn main() {
},
_ => {
println!("Error spawning: {:?}", e);
exit(1337);
exit(1);
}
}
}