aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler/std-docs.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-03-06 19:22:35 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-03-10 17:51:06 -0700
commited8ee3ddd377b7148ff4ea0a7606e0cb60e539d7 (patch)
tree18e669d20ae9b4a1dd042a03d300800fa5044d38 /lib/compiler/std-docs.zig
parent6b84c8e04c9286d072367ae86807fd517c74c479 (diff)
downloadzig-ed8ee3ddd377b7148ff4ea0a7606e0cb60e539d7.tar.gz
zig-ed8ee3ddd377b7148ff4ea0a7606e0cb60e539d7.zip
slightly better error name when wasm compilation fails
Diffstat (limited to 'lib/compiler/std-docs.zig')
-rw-r--r--lib/compiler/std-docs.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/compiler/std-docs.zig b/lib/compiler/std-docs.zig
index 2a856f100e..532c698c84 100644
--- a/lib/compiler/std-docs.zig
+++ b/lib/compiler/std-docs.zig
@@ -327,7 +327,7 @@ fn buildWasmBinary(
"the following command exited with error code {d}:\n{s}",
.{ code, try std.Build.Step.allocPrintCmd(arena, null, argv.items) },
);
- return error.AlreadyReported;
+ return error.WasmCompilationFailed;
}
},
.Signal, .Stopped, .Unknown => {
@@ -335,7 +335,7 @@ fn buildWasmBinary(
"the following command terminated unexpectedly:\n{s}",
.{try std.Build.Step.allocPrintCmd(arena, null, argv.items)},
);
- return error.AlreadyReported;
+ return error.WasmCompilationFailed;
},
}
@@ -346,14 +346,14 @@ fn buildWasmBinary(
result_error_bundle.errorMessageCount(),
try std.Build.Step.allocPrintCmd(arena, null, argv.items),
});
- return error.AlreadyReported;
+ return error.WasmCompilationFailed;
}
return result orelse {
std.log.err("child process failed to report result\n{s}", .{
try std.Build.Step.allocPrintCmd(arena, null, argv.items),
});
- return error.AlreadyReported;
+ return error.WasmCompilationFailed;
};
}