mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 09:01:04 -05:00
fix: Be friendlier about error messages
This commit is contained in:
parent
b8d35c30e5
commit
78d76bcbc6
1 changed files with 7 additions and 1 deletions
|
@ -14,7 +14,13 @@ mod dict;
|
||||||
mod replace;
|
mod replace;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let code = run().unwrap();
|
let code = match run() {
|
||||||
|
Ok(code) => code,
|
||||||
|
Err(err) => {
|
||||||
|
eprintln!("{}", err);
|
||||||
|
1
|
||||||
|
}
|
||||||
|
};
|
||||||
std::process::exit(code);
|
std::process::exit(code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue