Skip to content

Commit

Permalink
Handle preprocess image error
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukaii committed Nov 21, 2016
1 parent aaf034b commit 1a4f395
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
}
});
Expand Down

0 comments on commit 1a4f395

Please sign in to comment.