diff options
author | Christoph (Sheogorath) Kern | 2018-02-17 17:32:26 +0100 |
---|---|---|
committer | GitHub | 2018-02-17 17:32:26 +0100 |
commit | e4783837efa1840eea492341bd5816aca457fc7b (patch) | |
tree | ed756a1d61243319c9b4af227dc93450e3d1813f /lib | |
parent | e79373883390f28b2154b4892fee7cf466add58a (diff) | |
parent | 15ef54c2dc8147ad49cca286d0591aeb5dbaa6f3 (diff) |
Merge pull request #728 from hackmdio/fix-show-error-in-parseNoteId
Fix to show 500 message when got error in parseNoteId
Diffstat (limited to 'lib')
-rw-r--r-- | lib/response.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/response.js b/lib/response.js index c874ce9c..41e8c336 100644 --- a/lib/response.js +++ b/lib/response.js @@ -146,7 +146,8 @@ function findNote (req, res, callback, include) { var id = req.params.noteId || req.params.shortid models.Note.parseNoteId(id, function (err, _id) { if (err) { - logger.log(err) + logger.error(err) + return response.errorInternalError(res) } models.Note.findOne({ where: { |