summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/response.js3
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: {