improve error handling (#2839)

This commit is contained in:
Aiden McClelland
2025-02-24 13:49:16 -07:00
committed by GitHub
parent f55af7da4c
commit 737beb11f6
3 changed files with 4 additions and 3 deletions

View File

@@ -265,6 +265,7 @@ export class SubContainer implements ExecSpawnable {
if (options?.input) {
await new Promise<null>((resolve, reject) => {
try {
child.stdin.on("error", (e) => reject(e))
child.stdin.write(options.input, (e) => {
if (e) {
reject(e)