Skip to content

Commit ff503ed

Browse files
committed
Compilation: fix not showing sub-errors for autodocs
1 parent 40edd11 commit ff503ed

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Compilation.zig

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4201,10 +4201,11 @@ fn workerDocsWasm(comp: *Compilation, parent_prog_node: std.Progress.Node) void
42014201
const prog_node = parent_prog_node.start("Compile Autodocs", 0);
42024202
defer prog_node.end();
42034203

4204-
workerDocsWasmFallible(comp, prog_node) catch |err| {
4205-
comp.lockAndSetMiscFailure(.docs_wasm, "unable to build autodocs: {s}", .{
4204+
workerDocsWasmFallible(comp, prog_node) catch |err| switch (err) {
4205+
error.SubCompilationFailed => return, // error reported already
4206+
else => comp.lockAndSetMiscFailure(.docs_wasm, "unable to build autodocs: {s}", .{
42064207
@errorName(err),
4207-
});
4208+
}),
42084209
};
42094210
}
42104211

0 commit comments

Comments
 (0)