diff options
author | Yukai Huang | 2016-11-22 07:20:48 +0800 |
---|---|---|
committer | Yukai Huang | 2016-11-22 07:20:48 +0800 |
commit | 1a4f3950e6d03797beb79c63a3e6f071d8298c17 (patch) | |
tree | 44c237f2f208a806e3b777917b0a1c3242ece6a9 | |
parent | aaf034bfbc7b0b4ac6153b8fefdc04d10a9f0c1f (diff) |
Handle preprocess image error
-rw-r--r-- | app.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -493,6 +493,10 @@ app.post('/uploadimage', function (req, res) { logger.error(err); return res.status(500).end('upload image error'); } + + }).catch((err) => { + logger.error(err); + return res.status(500).end('process image error'); }); } }); |