Skip to content

Commit 014ba49

Browse files
committed
fix: attach error handler to spawned process
1 parent 0c49691 commit 014ba49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/child-process.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,9 @@ export function spawn(command: string, args: string[], opts?: any): Promise<stri
5555
}
5656
}
5757
});
58+
59+
childProcess.on("error", (err) => {
60+
reject(err);
61+
});
5862
});
5963
}

0 commit comments

Comments
 (0)