Skip to content

Commit 699b999

Browse files
committed
fix: prevent window from closing immediately on crash by waiting for keypress
1 parent 30fac51 commit 699b999

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ fn main() {
126126
// explicitly with `eprintln!` ensures that the Display output is used.
127127
if let Err(e) = run(root_path) {
128128
eprintln!("{}", e); // Use Display format to output the error
129+
exit_on_keypress(Some(t("press_to_exit")));
129130
std::process::exit(1);
130131
}
131132
}

0 commit comments

Comments
 (0)