diff --git a/src/main.rs b/src/main.rs index 66570ba..9f69ea0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -409,8 +409,7 @@ fn restore_terminal() { } fn main() -> Result<()> { - run(&Clargs::parse()).map_err(|e| { + run(&Clargs::parse()).inspect_err(|_| { restore_terminal(); - e }) }