From ab55d951a0262a680e1e0b1e7d23f28303044e15 Mon Sep 17 00:00:00 2001 From: Tangent 128 Date: Sat, 14 Apr 2018 18:44:09 -0400 Subject: [PATCH] Use nonzero exit code on error. --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 3e76ad8..9b5cd7d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,5 +36,8 @@ fn main() { println!(""); Ok(()) } - }.unwrap_or_else(|err| println!("Error: {}", err)); + }.unwrap_or_else(|err| { + println!("Error: {}", err); + ::std::process::exit(1); + }); }