From e6d48cb31ab6eee22ae5db3e8ace8f882835303f Mon Sep 17 00:00:00 2001 From: Mario Krehl Date: Wed, 7 Sep 2016 10:16:36 +0200 Subject: [PATCH] Fix exit codes --- bin/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/src/main.rs b/bin/src/main.rs index 12af035e..885f0163 100644 --- a/bin/src/main.rs +++ b/bin/src/main.rs @@ -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); } } }