mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 23:52:12 -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;
|
||||
|
||||
fn main() {
|
||||
let code = run().unwrap();
|
||||
let code = match run() {
|
||||
Ok(code) => code,
|
||||
Err(err) => {
|
||||
eprintln!("{}", err);
|
||||
1
|
||||
}
|
||||
};
|
||||
std::process::exit(code);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue