aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Maier <>2026-03-05 11:05:21 +0100
committerJonas Maier <>2026-03-05 11:05:21 +0100
commit7db3154e9ebdf3c4e4863a9f2ab13daffe6e7285 (patch)
tree1d32ace2cc943f4eee7bd22c1bc900fa7c094b51
parent6c4ce3ce96f0e1f20408c8399e4908f463ea840e (diff)
downloadpish-7db3154e9ebdf3c4e4863a9f2ab13daffe6e7285.tar.gz
comment to explain
-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,
}
}