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:
@@ -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(())
|
||||
}
|
||||
Reference in New Issue
Block a user