summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYukai Huang2016-11-22 07:20:48 +0800
committerYukai Huang2016-11-22 07:20:48 +0800
commit1a4f3950e6d03797beb79c63a3e6f071d8298c17 (patch)
tree44c237f2f208a806e3b777917b0a1c3242ece6a9
parentaaf034bfbc7b0b4ac6153b8fefdc04d10a9f0c1f (diff)
Handle preprocess image error
-rw-r--r--app.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app.js b/app.js
index 1c1120d0..eb0ee228 100644
--- a/app.js
+++ b/app.js
@@ -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');
});
}
});