mirror of
https://github.com/Ap0dexMe0/unixtract.git
synced 2026-07-16 05:04:22 +02:00
unify error and success handling in extractors
This commit is contained in:
@@ -90,6 +90,9 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
if let Some(ctx) = (format.detector_func)(&app_ctx)? {
|
||||
println!("\n{} detected!", format.name);
|
||||
(format.extractor_func)(&app_ctx, ctx)?;
|
||||
|
||||
//extractor returned with no error
|
||||
println!("\nExtraction finished! Saved extracted files to {}", output_path_str);
|
||||
return Ok(());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user