From 8f64d3385ad16d1503572722dd0c85c48415bd00 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Wed, 2 Oct 2019 19:33:52 -0500 Subject: [PATCH] FIX: Exit with non-zero exit code when fmt fails Fixes #50 --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 8446196..f032121 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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();