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
+1 -3
View File
@@ -43,8 +43,7 @@ pub fn extract_epk3(app_ctx: &AppContext, _ctx: Box<dyn Any>) -> Result<(), Box<
new_type = true;
} else {
println!("No valid key found!");
return Ok(());
return Err("No valid key found!".into());
}
let signature_size = if new_type {256} else {128};
@@ -110,6 +109,5 @@ pub fn extract_epk3(app_ctx: &AppContext, _ctx: Box<dyn Any>) -> Result<(), Box<
pak_i += 1;
}
println!("\nExtraction finished!");
Ok(())
}