From 790d78724134371b2fd858ff13222097524f6867 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Tue, 9 Jun 2020 21:35:36 +0200 Subject: 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. --- src/main.rs | 1 + 1 file changed, 1 insertion(+) 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); } } -- cgit v1.2.3