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:
@@ -47,7 +47,7 @@ pub fn extract_mstar(app_ctx: &AppContext, _ctx: Box<dyn Any>) -> Result<(), Box
|
||||
script_string = String::from_utf8_lossy(&script);
|
||||
|
||||
if script_string == "" {
|
||||
println!("Failed to get script.");
|
||||
return Err("Failed to get script".into());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -168,8 +168,5 @@ pub fn extract_mstar(app_ctx: &AppContext, _ctx: Box<dyn Any>) -> Result<(), Box
|
||||
i += 1;
|
||||
}
|
||||
|
||||
println!();
|
||||
println!("Extraction finished!");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user