1
0
Fork 0

add debug for code

pull/1344/head
Cory Miller 2023-02-21 15:27:48 +00:00
parent 3406ce58d6
commit d155e954a1
1 changed files with 5 additions and 4 deletions

View File

@ -159,15 +159,16 @@ export async function rmRF(inputPath: string): Promise<void> {
console.log(`spawn: ${result.spawnargs}`) console.log(`spawn: ${result.spawnargs}`)
}) })
result.stdout?.on('data', (data) => { result.stdout?.on('data', data => {
console.log(`stdout: ${data}`) console.log(`stdout: ${data}`)
}); })
result.stderr?.on('data', (data) => { result.stderr?.on('data', data => {
console.log(`stdout: ${data}`) console.log(`stdout: ${data}`)
}); })
result.on('close', code => { result.on('close', code => {
console.log(`close: ${code}`)
resolve(code) resolve(code)
}) })
}) })