commit ff503edc044104d3d4cf2c2790859561eeca8aec (tree)
parent 40edd11516081b455df09ce0d19b3ca686655924
Author: Andrew Kelley <andrew@ziglang.org>
Date: Tue, 6 Aug 2024 12:33:34 -0700
Compilation: fix not showing sub-errors for autodocs
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/Compilation.zig b/src/Compilation.zig
@@ -4201,10 +4201,11 @@ fn workerDocsWasm(comp: *Compilation, parent_prog_node: std.Progress.Node) void
const prog_node = parent_prog_node.start("Compile Autodocs", 0);
defer prog_node.end();
- workerDocsWasmFallible(comp, prog_node) catch |err| {
- comp.lockAndSetMiscFailure(.docs_wasm, "unable to build autodocs: {s}", .{
+ workerDocsWasmFallible(comp, prog_node) catch |err| switch (err) {
+ error.SubCompilationFailed => return, // error reported already
+ else => comp.lockAndSetMiscFailure(.docs_wasm, "unable to build autodocs: {s}", .{
@errorName(err),
- });
+ }),
};
}