fix: Be friendlier about error messages

This commit is contained in:
Ed Page 2020-10-28 20:47:16 -05:00
parent b8d35c30e5
commit 78d76bcbc6

View file

@ -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);
}