| ... | @@ -5120,8 +5120,8 @@ fn fmtPathFile( | ... | @@ -5120,8 +5120,8 @@ fn fmtPathFile( |
| 5120 | var tree = try Ast.parse(gpa, source_code, .zig); | 5120 | var tree = try Ast.parse(gpa, source_code, .zig); |
| 5121 | defer tree.deinit(gpa); | 5121 | defer tree.deinit(gpa); |
| 5122 | | 5122 | |
| 5123 | try printAstErrorsToStderr(gpa, tree, file_path, fmt.color); | | |
| 5124 | if (tree.errors.len != 0) { | 5123 | if (tree.errors.len != 0) { |
| | 5124 | try printAstErrorsToStderr(gpa, tree, file_path, fmt.color); |
| 5125 | fmt.any_error = true; | 5125 | fmt.any_error = true; |
| 5126 | return; | 5126 | return; |
| 5127 | } | 5127 | } |