diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-06-18 12:44:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-18 12:44:43 -0400 |
commit | f564497630d8d12023cd093904bf237ab1079a94 (patch) | |
tree | 1c14d4e641e739fdf99cf4a16d45db35c1da515f /cli/tools/fmt.rs | |
parent | fa7cad06de648a7e35995b9a366ae2cee3b3bc4f (diff) |
fix(fmt): should fail `--check` on parse error (#14907)
Diffstat (limited to 'cli/tools/fmt.rs')
-rw-r--r-- | cli/tools/fmt.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/tools/fmt.rs b/cli/tools/fmt.rs index 3eb620900..4e399bcf5 100644 --- a/cli/tools/fmt.rs +++ b/cli/tools/fmt.rs @@ -316,6 +316,7 @@ async fn check_source_files( incremental_cache.update_file(&file_path, &file_text); } Err(e) => { + not_formatted_files_count.fetch_add(1, Ordering::Relaxed); let _g = output_lock.lock(); eprintln!("Error checking: {}", file_path.to_string_lossy()); eprintln!(" {}", e); |