Skip to content

Commit 9dc3853

Browse files
committed
Add some debug code
Signed-off-by: Thomas Mäder <[email protected]>
1 parent 9f326b5 commit 9dc3853

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

packages/process/src/node/raw-process.ts

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ export class RawProcess extends Process {
117117
});
118118

119119
this.process.on('close', (exitCode, signal) => {
120+
console.log(`raw:exitCode = ${exitCode}, signal =${signal}`);
120121
// node's child_process exit sets the unused parameter to null,
121122
// but we want it to be undefined instead.
122123
this.emitOnClose(

packages/process/src/node/terminal-process.ts

+1
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export class TerminalProcess extends Process {
155155
// node-pty actually wait for the underlying streams to be closed before emitting exit.
156156
// We should emulate the `exit` and `close` sequence.
157157
terminal.onExit(({ exitCode, signal }) => {
158+
console.log(`terminal:exitCode = ${exitCode}, signal =${signal}`);
158159
// Make sure to only pass either code or signal as !undefined, not
159160
// both.
160161
//

packages/task/src/node/task-server.slow-spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ function getExitStatus(taskInfo: TaskInfo, taskWatcher: TaskWatcher): Promise<st
430430
} else if (typeof event.code === 'number') {
431431
resolve(event.code);
432432
} else {
433-
reject(new Error('no code nor signal'));
433+
reject(new Error(`no code nor signal: ${JSON.stringify(event)}`));
434434
}
435435
}
436436
});

0 commit comments

Comments
 (0)