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()) } }