From 389b5b6d0fec7eef386c27b12183f91cbdb8b524 Mon Sep 17 00:00:00 2001 From: David Anthoff Date: Tue, 14 Nov 2023 16:53:27 -0800 Subject: [PATCH 1/2] Handle an error condition correctly --- src/bin/julialauncher.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/julialauncher.rs b/src/bin/julialauncher.rs index 4e1e1cf8..fa0b211c 100644 --- a/src/bin/julialauncher.rs +++ b/src/bin/julialauncher.rs @@ -366,6 +366,9 @@ fn main() -> Result { return Ok(std::process::ExitCode::FAILURE); } + else { + return Err(client_status.unwrap_err()); + } } let client_status: u8 = client_status?.try_into().unwrap(); From 40c089b6bfb0a5ced106bd7227ee06d6fca1acc0 Mon Sep 17 00:00:00 2001 From: David Anthoff Date: Tue, 14 Nov 2023 16:58:23 -0800 Subject: [PATCH 2/2] Fix formatting --- src/bin/julialauncher.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bin/julialauncher.rs b/src/bin/julialauncher.rs index fa0b211c..e1d56ba9 100644 --- a/src/bin/julialauncher.rs +++ b/src/bin/julialauncher.rs @@ -365,8 +365,7 @@ fn main() -> Result { eprintln!("{}", e.msg); return Ok(std::process::ExitCode::FAILURE); - } - else { + } else { return Err(client_status.unwrap_err()); } }