fix: fix typos and improve error handling in compression engines

Co-authored-by: aider (openai/andrew/openrouter/sonoma-sky-alpha) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-09-11 12:00:45 -03:00
parent f2951bf78e
commit 5d7c0658b9
3 changed files with 4 additions and 4 deletions

View File

@@ -83,7 +83,9 @@ impl<W: Write> Drop for AutoFinishGzEncoder<W> {
fn drop(&mut self) {
if let Some(encoder) = self.encoder.take() {
debug!("COMPRESSION: Finishing");
let _ = encoder.finish();
if let Err(e) = encoder.finish() {
warn!("Failed to finish GZip encoder: {}", e);
}
}
}
}