add 404 error to videos not found

better-liveGrid-monitor-item
Moe 2023-02-14 09:52:11 -08:00
parent b6f11b353a
commit bf365b60cd
1 changed files with 3 additions and 0 deletions

View File

@ -1374,6 +1374,7 @@ module.exports = function(s,config,lang,app,io){
dataPipe.pipe(res)
}).catch((err) => {
console.error('onGetVideoData ERROR',err,videoDetails)
res.status(404)
res.end(user.lang['File Not Found in Database'])
})
}else{
@ -1383,6 +1384,7 @@ module.exports = function(s,config,lang,app,io){
})
}
}else{
res.status(404)
res.end(user.lang['File Not Found in Database'])
}
})
@ -1463,6 +1465,7 @@ module.exports = function(s,config,lang,app,io){
if(videoRow){
sendVideo(videoRow)
}else{
res.status(404)
res.end(user.lang['File Not Found in Database'])
}
})