Skip to content

Commit

Permalink
main: fix output always being written to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexu committed Dec 16, 2024
1 parent 2c88153 commit 99271f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ fn translate(d: *aro.Driver, args: []const []const u8) !void {
close_out_file = true;
out_file_path = path;
}
std.io.getStdOut().writeAll(formatted) catch |err|
out_file.writeAll(formatted) catch |err|
return d.fatal("failed to write result to '{s}': {s}", .{ out_file_path, aro.Driver.errorDescription(err) });

if (fast_exit) process.exit(0);
Expand Down

0 comments on commit 99271f1

Please sign in to comment.