Skip to content

Commit

Permalink
nitpickery; added success msg
Browse files Browse the repository at this point in the history
  • Loading branch information
epi052 committed Oct 5, 2023
1 parent fa9d425 commit bc486ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/event_handlers/inputs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ impl TermInputHandler {
);
PROGRESS_PRINTER.println(error);

//
let temp_filename = temp_dir().join(&filename);

let Ok(mut state_file) = open_file(&temp_filename.to_string_lossy()) else {
Expand All @@ -127,6 +126,9 @@ impl TermInputHandler {

write_to(&state, &mut state_file, true)?;

let msg = format!("✅ Saved scan state to {:?}", temp_filename);
PROGRESS_PRINTER.println(msg);

log::trace!("exit: sigint_handler (saved to temp folder)");
std::process::exit(1);
};
Expand Down

0 comments on commit bc486ac

Please sign in to comment.