added file path to send file warning

This commit is contained in:
bill bittner 2018-05-07 10:51:13 -07:00
parent c0838bbe54
commit a82f5990f4

View file

@ -10,7 +10,7 @@ const serveFile = ({ filePath, fileType }, res) => {
};
res.status(200).sendFile(filePath, sendFileOptions, (error) => {
if (error) {
logger.warn(error);
logger.warn(filePath, error);
res.status(404).send();
}
});