summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMario Krehl <mkrehl@science-computing.de>2016-09-07 10:16:36 +0200
committerMario Krehl <mkrehl@science-computing.de>2016-09-07 10:22:08 +0200
commite6d48cb31ab6eee22ae5db3e8ace8f882835303f (patch)
tree026c852d09c51cb3209a2c1a98ca5c5379eb923b /bin
parent5ea5f588a964e46fefcac1efabb7f241c719f7ac (diff)
Fix exit codes
Diffstat (limited to 'bin')
-rw-r--r--bin/src/main.rs4
1 files 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);
}
}
}