From 33b96099ade20c2d5de08ec6859335f97a4e9fad Mon Sep 17 00:00:00 2001 From: bill bittner Date: Mon, 7 May 2018 11:03:30 -0700 Subject: [PATCH] removing sendFile error catch --- server/controllers/assets/utils/serveFile.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/server/controllers/assets/utils/serveFile.js b/server/controllers/assets/utils/serveFile.js index bf64620f..ab3c167a 100644 --- a/server/controllers/assets/utils/serveFile.js +++ b/server/controllers/assets/utils/serveFile.js @@ -8,12 +8,7 @@ const serveFile = ({ filePath, fileType }, res) => { 'Content-Type' : fileType || 'image/jpeg', }, }; - res.status(200).sendFile(filePath, sendFileOptions, (error) => { - if (error) { - logger.warn(filePath, error); - res.status(404).send(); - } - }); + res.status(200).sendFile(filePath, sendFileOptions); }; module.exports = serveFile;