mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
[MockDocUpdaterServer] return a 404 when a requested doc does not exist
This commit is contained in:
@@ -43,6 +43,9 @@ module.exports = MockDocUpdaterServer = {
|
||||
if (error != null) {
|
||||
return next(error)
|
||||
}
|
||||
if (!data) {
|
||||
return res.sendStatus(404)
|
||||
}
|
||||
return res.json(data)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user