From a9d9fe7f3d3e7824a9dbfc2d88fc11782c842ea3 Mon Sep 17 00:00:00 2001 From: purocean Date: Fri, 27 Jul 2018 15:45:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=94=99=E8=AF=AF=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/convert.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/convert.js b/backend/convert.js index 575ae253..d443959c 100644 --- a/backend/convert.js +++ b/backend/convert.js @@ -19,6 +19,10 @@ const convert = async (html, type) => { } }) + process.on('error', error => { + reject(error) + }) + process.stdin.write(html) process.stdin.end() })