added file path to send file warning
This commit is contained in:
parent
c0838bbe54
commit
a82f5990f4
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ const serveFile = ({ filePath, fileType }, res) => {
|
||||||
};
|
};
|
||||||
res.status(200).sendFile(filePath, sendFileOptions, (error) => {
|
res.status(200).sendFile(filePath, sendFileOptions, (error) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
logger.warn(error);
|
logger.warn(filePath, error);
|
||||||
res.status(404).send();
|
res.status(404).send();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue