aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig
index 630f454272..fcdb52c342 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -5120,8 +5120,8 @@ fn fmtPathFile(
var tree = try Ast.parse(gpa, source_code, .zig);
defer tree.deinit(gpa);
- try printAstErrorsToStderr(gpa, tree, file_path, fmt.color);
if (tree.errors.len != 0) {
+ try printAstErrorsToStderr(gpa, tree, file_path, fmt.color);
fmt.any_error = true;
return;
}