Skip to content

Commit 99271f1

Browse files
committed
main: fix output always being written to stdout
1 parent 2c88153 commit 99271f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ fn translate(d: *aro.Driver, args: []const []const u8) !void {
109109
close_out_file = true;
110110
out_file_path = path;
111111
}
112-
std.io.getStdOut().writeAll(formatted) catch |err|
112+
out_file.writeAll(formatted) catch |err|
113113
return d.fatal("failed to write result to '{s}': {s}", .{ out_file_path, aro.Driver.errorDescription(err) });
114114

115115
if (fast_exit) process.exit(0);

0 commit comments

Comments
 (0)