From 1d29d61628b2aa88748a3d9e60c6c4248b645a04 Mon Sep 17 00:00:00 2001 From: Jake Stanger Date: Sat, 15 Feb 2025 23:16:05 +0000 Subject: [PATCH] fix: exit 0 on ipc connection error Will now return code 3 Fixes #868 --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0fe9480..83ece42 100644 --- a/src/main.rs +++ b/src/main.rs @@ -102,7 +102,10 @@ fn run_with_args() { cli::handle_response(res, args.format.unwrap_or_default()); } - Err(err) => error!("{err:?}"), + Err(err) => { + error!("{err:#}"); + exit(ExitCode::IpcResponseError as i32) + } }; }); }