Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
prsabahrami committed Sep 26, 2024
1 parent 06bb772 commit 5368061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/shell/src/commands/touch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ fn pathbuf_from_stdout() -> Result<PathBuf> {

// 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())
}
}
Expand Down

0 comments on commit 5368061

Please sign in to comment.