unify error and success handling in extractors

This commit is contained in:
theubusu
2026-02-17 18:34:46 +01:00
parent aa2249f024
commit 10dd854685
29 changed files with 58 additions and 100 deletions
+3
View File
@@ -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(());
}
}