diff --git a/src/main.rs b/src/main.rs index 402d933..fcfd8d3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,7 +14,13 @@ mod dict; mod replace; fn main() { - let code = run().unwrap(); + let code = match run() { + Ok(code) => code, + Err(err) => { + eprintln!("{}", err); + 1 + } + }; std::process::exit(code); }