Skip to content

Commit

Permalink
Fix windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
--global authored and --global committed May 22, 2023
1 parent 163901e commit 6a32410
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/turborepo-paths/src/relative_unix_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ impl RelativeUnixPath {
.iter()
.map(|byte| if *byte == b'/' { b'\\' } else { *byte })
.collect::<Vec<u8>>();
let system_path_string = String::from_utf8(system_path_bytes)?;
let system_path_string = String::from_utf8(system_path_bytes).map_err(|_| {
PathError::InvalidUnicode(String::from_utf8_lossy(&system_path_bytes).to_string())
})?;
Ok(PathBuf::from(system_path_string))
}
}
Expand Down

0 comments on commit 6a32410

Please sign in to comment.