1
0
Fork 0

add error handler

pull/1344/head
Cory Miller 2023-02-21 15:40:11 +00:00
parent ed5722cdf7
commit a9ce8db226
1 changed files with 4 additions and 0 deletions

View File

@ -165,6 +165,10 @@ export async function rmRF(inputPath: string): Promise<void> {
console.log(`stdout: ${data}`)
})
result.on('error', err => {
console.log(`error: ${err}, ${err.code}`)
})
result.on('close', code => {
console.log(`close: ${code}`)
resolve(code)