[MockDocUpdaterServer] return a 404 when a requested doc does not exist

This commit is contained in:
Jakob Ackermann 2020-10-01 12:25:41 +01:00
parent 65eed4138e
commit 4f860995d8

View file

@ -43,6 +43,9 @@ module.exports = MockDocUpdaterServer = {
if (error != null) {
return next(error)
}
if (!data) {
return res.sendStatus(404)
}
return res.json(data)
}
)