Skip to content

Commit 15ef54c

Browse files
committed
Fix to show 500 message when got error in parseNoteId
Signed-off-by: Max Wu <jackymaxj@gmail.com>
1 parent e793738 commit 15ef54c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/response.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ function findNote (req, res, callback, include) {
146146
var id = req.params.noteId || req.params.shortid
147147
models.Note.parseNoteId(id, function (err, _id) {
148148
if (err) {
149-
logger.log(err)
149+
logger.error(err)
150+
return response.errorInternalError(res)
150151
}
151152
models.Note.findOne({
152153
where: {

0 commit comments

Comments
 (0)