Use nonzero exit code on error.
This commit is contained in:
parent
a847d62b34
commit
ab55d951a0
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue