cmd: preserve package attribution for tool failures

This commit is contained in:
2026-08-12 14:17:41 +09:00
parent 7dad3a6db4
commit d78020baf7

View File

@@ -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;