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)); });