From 0312be3343d5cc3496aedb9bd6842eeb37ce8554 Mon Sep 17 00:00:00 2001 From: Michal Filka Date: Wed, 15 Nov 2023 11:27:33 +0100 Subject: [PATCH] Minor fix --- rust/agama-cli/src/logs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/agama-cli/src/logs.rs b/rust/agama-cli/src/logs.rs index 405b18fa04..3e89bcc483 100644 --- a/rust/agama-cli/src/logs.rs +++ b/rust/agama-cli/src/logs.rs @@ -77,11 +77,11 @@ fn parse_destination(destination: Option) -> Result } else if path.parent().is_some() { // validate if parent directory realy exists if !path.parent().unwrap().is_dir() { - Err(err) + return Err(err) } // whatever else -> input error } else { - Err(err) + return Err(err) } Ok(buffer)