mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 11:35:45 +00:00
feat: good error output
This commit is contained in:
parent
862181ae0a
commit
d825feaeff
@ -165,7 +165,11 @@ pub fn decompress_file(
|
||||
}
|
||||
},
|
||||
SevenZip => {
|
||||
sevenz_rust::decompress_file(input_file_path, output_dir).expect("can't decompress");
|
||||
sevenz_rust::decompress_file(input_file_path, output_dir).map_err(
|
||||
|x| {
|
||||
crate::Error::SevenzipError(x)
|
||||
}
|
||||
)?;
|
||||
fs::read_dir(output_dir)?.count()
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user