Handle preprocess image error

This commit is contained in:
Yukai Huang 2016-11-22 07:20:48 +08:00
parent aaf034bfbc
commit 1a4f3950e6

4
app.js
View file

@ -493,6 +493,10 @@ app.post('/uploadimage', function (req, res) {
logger.error(err); logger.error(err);
return res.status(500).end('upload image error'); return res.status(500).end('upload image error');
} }
}).catch((err) => {
logger.error(err);
return res.status(500).end('process image error');
}); });
} }
}); });