aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-06-09 21:35:36 +0200
committerDaniel Schadt <kingdread@gmx.de>2020-06-09 21:35:36 +0200
commit790d78724134371b2fd858ff13222097524f6867 (patch)
tree88c3347a33db6ebec2706ffdff43394cc6968348
parente8c67979f3f6cb2d7fda06bc44c950d87ba3beb2 (diff)
downloadezau-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.rs1
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);
}
}