diff --git a/selfhost/cmd/ww/main.ww b/selfhost/cmd/ww/main.ww index a584c9ab..0a9238e7 100644 --- a/selfhost/cmd/ww/main.ww +++ b/selfhost/cmd/ww/main.ww @@ -2459,7 +2459,12 @@ fn buildonesepimpl(selfdir: *u8, src: *u8, entryisdir: i32, && result.code == 127) { cerr("ww: execve failed\n"); }; - cerr("ww: w6c failed\n"); + if (g.pkg[pi].path[0u64] != 0u8) { + cerrpath("ww: w6c failed for ", + g.pkg[pi].path, "\n"); + } else { + cerr("ww: w6c failed for (root)\n"); + }; g.pkg[pi].failed = true; anyfailed = true; oi += 1; @@ -2481,7 +2486,12 @@ fn buildonesepimpl(selfdir: *u8, src: *u8, entryisdir: i32, && result.code == 127) { cerr("ww: execve failed\n"); }; - cerr("ww: w6a failed\n"); + if (g.pkg[pi].path[0u64] != 0u8) { + cerrpath("ww: w6a failed for ", + g.pkg[pi].path, "\n"); + } else { + cerr("ww: w6a failed for (root)\n"); + }; g.pkg[pi].failed = true; anyfailed = true; oi += 1;