From 1bd92f611dc327ed4b326e0e8f0a2eca8231d63d Mon Sep 17 00:00:00 2001 From: Josh Clayton Date: Thu, 6 Jan 2022 08:55:34 -0500 Subject: [PATCH] Return an exit status of 1 when loading and parsing tokens fails What? ===== This updates the exit status to return 1 when finding and parsing a tags file rather than return the program was successful. --- crates/cli/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/cli/src/lib.rs b/crates/cli/src/lib.rs index 2977575..769b52f 100644 --- a/crates/cli/src/lib.rs +++ b/crates/cli/src/lib.rs @@ -40,7 +40,10 @@ pub fn run() { } } } - Err(e) => error_message::failed_token_parse(e), + Err(e) => { + error_message::failed_token_parse(e); + process::exit(1) + } }, } }