From 15c40d159684fa6de1d3d8edebf61195f629ee44 Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Thu, 23 Oct 2025 16:41:23 -0400 Subject: [PATCH 1/2] tsk-78: Making error to get string from o string more robust --- src/utilities/string.rs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/utilities/string.rs b/src/utilities/string.rs index 4a2bb63..5b18625 100644 --- a/src/utilities/string.rs +++ b/src/utilities/string.rs @@ -1,6 +1,20 @@ pub fn o_to_string(val: &std::ffi::OsString) -> Result { match val.clone().into_string() { Ok(value) => Ok(value), - Err(_) => Err(std::io::Error::other(String::from("Error"))), + Err(err) => match err.into_string() { + Ok(res) => { + Err(std::io::Error::other(res.to_string())) + } + Err(err) => { + match err.to_str() { + Some(err) => { + Err(std::io::Error::other(err)) + } + None => { + Err(std::io::Error::other("Undefined error")) + } + } + } + } } } -- 2.47.3 From e74a69098bd57ab344aadf25680515e481cb3c3b Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Thu, 23 Oct 2025 16:43:18 -0400 Subject: [PATCH 2/2] tsk-78: Version bump --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b597e9e..37d5181 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -451,7 +451,7 @@ dependencies = [ [[package]] name = "icarus-dm" -version = "0.8.4" +version = "0.8.5" dependencies = [ "futures", "http", diff --git a/Cargo.toml b/Cargo.toml index 5bfc724..c4c8752 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "icarus-dm" -version = "0.8.4" +version = "0.8.5" rust-version = "1.90" edition = "2024" -- 2.47.3