aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-12-14 16:46:08 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-23 22:15:09 -0800
commit4458e423bf2d2cf485031d1f527e407bfc9113df (patch)
tree346c1463c8bbf76bf690a056e2851754e8661dae /src/main.zig
parent2a40c1b556d7ed7811d3d2432dce8ba5d7c2e753 (diff)
downloadzig-4458e423bf2d2cf485031d1f527e407bfc9113df.tar.gz
zig-4458e423bf2d2cf485031d1f527e407bfc9113df.zip
link.MappedFile: update statx usage
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main.zig b/src/main.zig
index f735f671c6..56a014bb92 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -4607,7 +4607,7 @@ fn updateModule(comp: *Compilation, color: Color, prog_node: std.Progress.Node)
if (errors.errorMessageCount() > 0) {
const io = comp.io;
- errors.renderToStderr(io, .{}, color);
+ try errors.renderToStderr(io, .{}, color);
return error.CompileErrorsReported;
}
}
@@ -4660,7 +4660,7 @@ fn cmdTranslateC(
return;
} else {
const color: Color = .auto;
- result.errors.renderToStderr(io, .{}, color);
+ result.errors.renderToStderr(io, .{}, color) catch {};
process.exit(1);
}
}
@@ -5281,7 +5281,7 @@ fn cmdBuild(gpa: Allocator, arena: Allocator, io: Io, args: []const []const u8)
if (fetch.error_bundle.root_list.items.len > 0) {
var errors = try fetch.error_bundle.toOwnedBundle("");
- errors.renderToStderr(io, .{}, color);
+ errors.renderToStderr(io, .{}, color) catch {};
process.exit(1);
}
@@ -6213,7 +6213,7 @@ fn cmdAstCheck(arena: Allocator, io: Io, args: []const []const u8) !void {
try wip_errors.init(arena);
try wip_errors.addZirErrorMessages(zir, tree, source, display_path);
var error_bundle = try wip_errors.toOwnedBundle("");
- error_bundle.renderToStderr(io, .{}, color);
+ try error_bundle.renderToStderr(io, .{}, color);
if (zir.loweringFailed()) {
process.exit(1);
}
@@ -6284,7 +6284,7 @@ fn cmdAstCheck(arena: Allocator, io: Io, args: []const []const u8) !void {
try wip_errors.init(arena);
try wip_errors.addZoirErrorMessages(zoir, tree, source, display_path);
var error_bundle = try wip_errors.toOwnedBundle("");
- error_bundle.renderToStderr(io, .{}, color);
+ error_bundle.renderToStderr(io, .{}, color) catch {};
process.exit(1);
}
@@ -6558,7 +6558,7 @@ fn cmdChangelist(arena: Allocator, io: Io, args: []const []const u8) !void {
try wip_errors.init(arena);
try wip_errors.addZirErrorMessages(old_zir, old_tree, old_source, old_source_path);
var error_bundle = try wip_errors.toOwnedBundle("");
- error_bundle.renderToStderr(io, .{}, color);
+ error_bundle.renderToStderr(io, .{}, color) catch {};
process.exit(1);
}
@@ -6570,7 +6570,7 @@ fn cmdChangelist(arena: Allocator, io: Io, args: []const []const u8) !void {
try wip_errors.init(arena);
try wip_errors.addZirErrorMessages(new_zir, new_tree, new_source, new_source_path);
var error_bundle = try wip_errors.toOwnedBundle("");
- error_bundle.renderToStderr(io, .{}, color);
+ error_bundle.renderToStderr(io, .{}, color) catch {};
process.exit(1);
}
@@ -7006,7 +7006,7 @@ fn cmdFetch(
if (fetch.error_bundle.root_list.items.len > 0) {
var errors = try fetch.error_bundle.toOwnedBundle("");
- errors.renderToStderr(io, .{}, color);
+ errors.renderToStderr(io, .{}, color) catch {};
process.exit(1);
}
@@ -7363,7 +7363,7 @@ fn loadManifest(
var error_bundle = try wip_errors.toOwnedBundle("");
defer error_bundle.deinit(gpa);
- error_bundle.renderToStderr(io, .{}, options.color);
+ error_bundle.renderToStderr(io, .{}, options.color) catch {};
process.exit(2);
}