FIX: Exit with non-zero exit code when fmt fails

Fixes #50
This commit is contained in:
Jeremy Wall 2019-10-02 19:33:52 -05:00
parent b83c57b1f6
commit 8f64d3385a

View File

@ -693,6 +693,7 @@ fn main() {
} else if let Some(matches) = app_matches.subcommand_matches("fmt") {
if let Err(e) = fmt_command(matches) {
eprintln!("{}", e);
process::exit(1);
}
} else {
app.print_help().unwrap();