diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-03-01 13:31:02 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-03-15 10:48:13 -0700 |
| commit | b5baa41077dce5ef61667e76d80835c0792a2fc4 (patch) | |
| tree | 0d90f997ec59eb5d1cec30c9824b545503cd916b /src/main.zig | |
| parent | a7754d219a60fdc15d3bff0d6d2ac7fee9f7c4db (diff) | |
| download | zig-b5baa41077dce5ef61667e76d80835c0792a2fc4.tar.gz zig-b5baa41077dce5ef61667e76d80835c0792a2fc4.zip | |
fix zig fmt crash
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 2 |
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; } |
