aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index fe66eba..2cb1ba7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -257,11 +257,12 @@ fn main() {
crate::panic::hook();
+ // it is quite annoying when the terminal window closes due to a crash, so let's just catch all panics
loop {
let res = std::panic::catch_unwind(event_loop);
match res {
Ok(_) => break,
- Err(_) => println!("sorry about that, let's continue with the shell"),
+ Err(_) => continue,
}
}