| ... | ... | @@ -327,7 +327,7 @@ fn buildWasmBinary( |
| 327 | 327 | "the following command exited with error code {d}:\n{s}", |
| 328 | 328 | .{ code, try std.Build.Step.allocPrintCmd(arena, null, argv.items) }, |
| 329 | 329 | ); |
| 330 | | return error.AlreadyReported; |
| 330 | return error.WasmCompilationFailed; |
| 331 | 331 | } |
| 332 | 332 | }, |
| 333 | 333 | .Signal, .Stopped, .Unknown => { |
| ... | ... | @@ -335,7 +335,7 @@ fn buildWasmBinary( |
| 335 | 335 | "the following command terminated unexpectedly:\n{s}", |
| 336 | 336 | .{try std.Build.Step.allocPrintCmd(arena, null, argv.items)}, |
| 337 | 337 | ); |
| 338 | | return error.AlreadyReported; |
| 338 | return error.WasmCompilationFailed; |
| 339 | 339 | }, |
| 340 | 340 | } |
| 341 | 341 | |
| ... | ... | @@ -346,14 +346,14 @@ fn buildWasmBinary( |
| 346 | 346 | result_error_bundle.errorMessageCount(), |
| 347 | 347 | try std.Build.Step.allocPrintCmd(arena, null, argv.items), |
| 348 | 348 | }); |
| 349 | | return error.AlreadyReported; |
| 349 | return error.WasmCompilationFailed; |
| 350 | 350 | } |
| 351 | 351 | |
| 352 | 352 | return result orelse { |
| 353 | 353 | std.log.err("child process failed to report result\n{s}", .{ |
| 354 | 354 | try std.Build.Step.allocPrintCmd(arena, null, argv.items), |
| 355 | 355 | }); |
| 356 | | return error.AlreadyReported; |
| 356 | return error.WasmCompilationFailed; |
| 357 | 357 | }; |
| 358 | 358 | } |
| 359 | 359 | |