mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
[MockDocUpdaterServer] return a 404 when a requested doc does not exist
This commit is contained in:
parent
65eed4138e
commit
4f860995d8
1 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,9 @@ module.exports = MockDocUpdaterServer = {
|
|||
if (error != null) {
|
||||
return next(error)
|
||||
}
|
||||
if (!data) {
|
||||
return res.sendStatus(404)
|
||||
}
|
||||
return res.json(data)
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue