Skip to content

Commit 8d4e9bf

Browse files
committed
test: fix ts compiler error
1 parent 4be7cdc commit 8d4e9bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/legacy-cli/e2e/utils/process.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ function _exec(options: ExecOptions, cmd: string, args: string[]): Promise<Proce
109109
);
110110
});
111111
childProcess.on('error', (error) => {
112-
err.message += `${error}...\n\nSTDOUT:\n${stdout}\n\nSTDERR:\n${stderr}\n`;
113-
reject(err);
112+
error.message += `${error}...\n\nSTDOUT:\n${stdout}\n\nSTDERR:\n${stderr}\n`;
113+
reject(error);
114114
});
115115

116116
if (options.waitForMatch) {

0 commit comments

Comments
 (0)