优化异步进程对异常的捕获
This commit is contained in:
@@ -13,5 +13,8 @@ const execute = cmd => new Promise((resolve, reject) => {
|
||||
pid.stdout.on('data', data => {
|
||||
console.log(data)
|
||||
})
|
||||
pid.stderr.on('data', data => {
|
||||
console.log(data)
|
||||
})
|
||||
})
|
||||
module.exports = execute
|
||||
|
||||
Reference in New Issue
Block a user