mirror of https://github.com/actions/toolkit
add error handler
parent
ed5722cdf7
commit
a9ce8db226
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue