Merge pull request 'fix(pcexec): include stderr in error message for better debugging' (#10) from fix/pcexec-error-message into main
Reviewed-on: #10
This commit was merged in pull request #10.
This commit is contained in:
@@ -249,7 +249,7 @@ export async function pcexec(
|
||||
command: finalCommand,
|
||||
});
|
||||
} 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.signal = signal ?? undefined;
|
||||
error.stdout = sanitizedStdout;
|
||||
|
||||
Reference in New Issue
Block a user