Skip to content

Commit

Permalink
aro_translate_c: Add a more helpful error message for error.StreamToo…
Browse files Browse the repository at this point in the history
…Long
  • Loading branch information
ehaas committed Jul 29, 2024
1 parent 5d8e56c commit 699e103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compiler/aro_translate_c.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ pub fn main() !void {
var tree = translate(gpa, &aro_comp, args) catch |err| switch (err) {
error.ParsingFailed, error.FatalError => renderErrorsAndExit(&aro_comp),
error.OutOfMemory => return error.OutOfMemory,
error.StreamTooLong => std.zig.fatal("StreamTooLong?", .{}),
error.StreamTooLong => std.zig.fatal("An input file was larger than 4GiB", .{}),
};
defer tree.deinit(gpa);

Expand Down

0 comments on commit 699e103

Please sign in to comment.