mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
improve error handling (#2839)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user