Skip to content

Commit fb6386b

Browse files
committed
Address copilot review
1 parent 8c9b4d6 commit fb6386b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

gix-archive/src/write.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ fn append_zip_entry<W: std::io::Write + std::io::Seek>(
172172
let path = path.to_str().map_err(|_| {
173173
Error::Io(std::io::Error::new(
174174
std::io::ErrorKind::InvalidData,
175-
format!("Invalid UTF-8 in entry path: {path}"),
175+
format!("Invalid UTF-8 in entry path: {path:?}"),
176176
))
177177
})?;
178178

@@ -221,7 +221,10 @@ fn append_zip_entry<W: std::io::Write + std::io::Seek>(
221221
let target = buf.as_bstr().to_str().map_err(|_| {
222222
Error::Io(std::io::Error::new(
223223
std::io::ErrorKind::InvalidData,
224-
"Invalid UTF-8 in symlink target",
224+
format!(
225+
"Invalid UTF-8 in symlink target for entry '{symlink_path}': {:?}",
226+
buf.as_bstr()
227+
),
225228
))
226229
})?;
227230

0 commit comments

Comments
 (0)