fix(pcexec): include stderr in error message for better debugging

This commit is contained in:
2026-03-09 08:53:04 +00:00
parent 61cffae9ca
commit 79c5f4cd27

View File

@@ -249,7 +249,7 @@ export async function pcexec(
command: finalCommand, command: finalCommand,
}); });
} else { } else {
const error = new Error(`Command failed: ${command}`) as PcExecError; const error = new Error(`Command failed: ${command}\n${stderr}`) as PcExecError;
error.code = code ?? undefined; error.code = code ?? undefined;
error.signal = signal ?? undefined; error.signal = signal ?? undefined;
error.stdout = sanitizedStdout; error.stdout = sanitizedStdout;