Bug fix
This commit is contained in:
parent
697578b38d
commit
5e0b216320
1 changed files with 5 additions and 2 deletions
|
@ -909,8 +909,11 @@ impl<W: Write + Seek> ZipWriter<W> {
|
||||||
|
|
||||||
self.start_entry(name, options, None)?;
|
self.start_entry(name, options, None)?;
|
||||||
self.writing_to_file = true;
|
self.writing_to_file = true;
|
||||||
self.write_all(target.into().as_bytes())?;
|
if let Err(e) = self.write_all(target.into().as_bytes()) {
|
||||||
self.writing_to_file = false;
|
self.abort_file().unwrap();
|
||||||
|
return Err(e.into());
|
||||||
|
}
|
||||||
|
self.finish_file()?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue