From e3702ba5f541bd30162d28a5fb06d707f8df5ea8 Mon Sep 17 00:00:00 2001 From: wtto00 Date: Fri, 10 May 2024 22:00:02 +0800 Subject: [PATCH] test spawnWaitFor --- src/util.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util.ts b/src/util.ts index 646e0d8..3df1535 100644 --- a/src/util.ts +++ b/src/util.ts @@ -93,7 +93,10 @@ export function spawnWaitFor(command: string, regex: RegExp, timeout = 600000) { }); } }); - proc.on('close', () => { + proc.on('close', (code, signal) => { + console.log('code,signal', code, signal); + console.log('output', output); + clearTimeout(clock); reject(Error(output)); });