mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
增加错误处理
This commit is contained in:
@@ -19,6 +19,10 @@ const convert = async (html, type) => {
|
||||
}
|
||||
})
|
||||
|
||||
process.on('error', error => {
|
||||
reject(error)
|
||||
})
|
||||
|
||||
process.stdin.write(html)
|
||||
process.stdin.end()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user