File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments