Correct error message

This commit is contained in:
Gwilym Inzani 2023-04-06 21:10:03 +01:00
parent 16c3395524
commit aa77255720

View file

@ -35,7 +35,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let (data, compression) = elf_file.section_data(&section_header)?; let (data, compression) = elf_file.section_data(&section_header)?;
if let Some(compression) = compression { if let Some(compression) = compression {
panic!("Cannot compress elf content, but got compression header {compression:?}"); panic!("Cannot decompress elf content, but got compression header {compression:?}");
} }
buf_writer.write_all(data)?; buf_writer.write_all(data)?;