From 5368061788c57c573fcd10348113b5a3629a2a47 Mon Sep 17 00:00:00 2001
From: prsabahrami
Date: Thu, 26 Sep 2024 12:48:30 -0400
Subject: [PATCH] Fix error message
---
crates/shell/src/commands/touch.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crates/shell/src/commands/touch.rs b/crates/shell/src/commands/touch.rs
index 79b6ead..4526229 100644
--- a/crates/shell/src/commands/touch.rs
+++ b/crates/shell/src/commands/touch.rs
@@ -295,7 +295,7 @@ fn pathbuf_from_stdout() -> Result {
// Don't include the null terminator
Ok(String::from_utf16(&file_path_buffer[0..buffer_size])
- .map_err(|e| miette!("GetFinalPathNameByHandleW failed with code {ret}"))?
+ .map_err(|e| miette!("Generated path is not valid UTF-16: {e}"))?
.into())
}
}