diff options
| author | Jonas Maier <> | 2026-03-05 11:05:21 +0100 |
|---|---|---|
| committer | Jonas Maier <> | 2026-03-05 11:05:21 +0100 |
| commit | 7db3154e9ebdf3c4e4863a9f2ab13daffe6e7285 (patch) | |
| tree | 1d32ace2cc943f4eee7bd22c1bc900fa7c094b51 /src | |
| parent | 6c4ce3ce96f0e1f20408c8399e4908f463ea840e (diff) | |
| download | pish-7db3154e9ebdf3c4e4863a9f2ab13daffe6e7285.tar.gz | |
comment to explain
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 3 |
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, } } |
