Skip to content

Commit

Permalink
obfuscate the rest of the file even if an error occurs with the recur…
Browse files Browse the repository at this point in the history
…sive option
  • Loading branch information
lapla-cogito committed Sep 22, 2024
1 parent a186608 commit c762dc4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ fn main() -> crate::error::Result<()> {
match exec_obfus(entry.to_str().unwrap(), &output_path, &args) {
Ok(_) => println!("obfuscation done!"),
Err(e) => {
eprintln!("error while obfuscation: {}", e);
return Err(e);
eprintln!("error while obfuscation of {}: {}", output_path, e);
std::fs::remove_file(&output_path).unwrap();
continue;
}
}
}
Expand Down

0 comments on commit c762dc4

Please sign in to comment.