Skip to content

Commit

Permalink
test(fuzz): Fix missing error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Pr0methean committed Jul 27, 2024
1 parent c3aad8b commit c43c4b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fuzz/fuzz_targets/fuzz_write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ impl <'k> FuzzTestCase<'k> {
if streamable {
writeln!(stringifier, "let mut stream = writer.finish()?;\n\
while read_zipfile_from_stream(&mut stream)?.is_some() {{}}")
.map_err(|_| ZipError::InvalidArchive(""))?;
.map_err(|_| ZipError::InvalidArchive("Failed to read from stream"))?;
let mut stream = writer.finish()?;
while read_zipfile_from_stream(&mut stream)?.is_some() {}
} else if final_reopen {
writeln!(stringifier, "let _ = writer.finish_into_readable()?;")
.map_err(|_| ZipError::InvalidArchive(""))?;
.map_err(|_| ZipError::InvalidArchive("Failed to finish_into_readable"))?;
let _ = writer.finish_into_readable()?;
}
Ok(())
Expand Down

0 comments on commit c43c4b4

Please sign in to comment.