mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 17:56:30 -05:00
Fix to show 500 message when got error in parseNoteId
Signed-off-by: Max Wu <jackymaxj@gmail.com>
This commit is contained in:
parent
e793738833
commit
15ef54c2dc
1 changed files with 2 additions and 1 deletions
|
@ -146,7 +146,8 @@ function findNote (req, res, callback, include) {
|
||||||
var id = req.params.noteId || req.params.shortid
|
var id = req.params.noteId || req.params.shortid
|
||||||
models.Note.parseNoteId(id, function (err, _id) {
|
models.Note.parseNoteId(id, function (err, _id) {
|
||||||
if (err) {
|
if (err) {
|
||||||
logger.log(err)
|
logger.error(err)
|
||||||
|
return response.errorInternalError(res)
|
||||||
}
|
}
|
||||||
models.Note.findOne({
|
models.Note.findOne({
|
||||||
where: {
|
where: {
|
||||||
|
|
Loading…
Reference in a new issue