From 8b09d8f6c15bd0f8408c46442c759f992a1099b1 Mon Sep 17 00:00:00 2001 From: ByteOtter Date: Tue, 1 Oct 2024 11:15:26 +0200 Subject: [PATCH] Fix error handling of ConfigError in main.rs --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9d06dba..6be1d75 100644 --- a/src/main.rs +++ b/src/main.rs @@ -84,8 +84,7 @@ fn main() { let config = match set_up_configuration(args.uri, args.token, args.name.clone()) { Ok(conf) => conf, Err(err) => { - println!("{}", err); - process::exit(1) + err.abort(None); } };