diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-06-09 21:35:36 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-06-09 21:35:36 +0200 |
commit | 790d78724134371b2fd858ff13222097524f6867 (patch) | |
tree | 88c3347a33db6ebec2706ffdff43394cc6968348 | |
parent | e8c67979f3f6cb2d7fda06bc44c950d87ba3beb2 (diff) | |
download | ezau-790d78724134371b2fd858ff13222097524f6867.tar.gz ezau-790d78724134371b2fd858ff13222097524f6867.tar.bz2 ezau-790d78724134371b2fd858ff13222097524f6867.zip |
Use exit code 1 on failure
This is important to signal e.g. systemd that there was an error and the
process should be restarted.
-rw-r--r-- | src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 521b7f4..f7f4bac 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,6 +62,7 @@ fn main() { let opts = Opts::parse(); if let Err(e) = inner_main(&opts) { error!("{}", e); + std::process::exit(1); } } |