Skip to content

Commit 86e9acc

Browse files
committed
Include stdout and stderror on execChildProcess errors.
1 parent df3d707 commit 86e9acc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/common.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ export async function execChildProcess(command: string, workingDirectory: string
7171
return new Promise<string>((resolve, reject) => {
7272
cp.exec(command, { cwd: workingDirectory, maxBuffer: 500 * 1024 }, (error, stdout, stderr) => {
7373
if (error) {
74-
reject(error);
74+
reject(`${error}
75+
${stdout}
76+
${stderr}`);
7577
}
7678
else if (stderr && !stderr.includes("screen size is bogus")) {
7779
reject(new Error(stderr));

0 commit comments

Comments
 (0)