diff --git a/services/web/app/src/Features/FileStore/FileStoreController.js b/services/web/app/src/Features/FileStore/FileStoreController.js index 71a281f9dc..e4dd34bcd7 100644 --- a/services/web/app/src/Features/FileStore/FileStoreController.js +++ b/services/web/app/src/Features/FileStore/FileStoreController.js @@ -15,10 +15,17 @@ module.exports = { { project_id: projectId, element_id: fileId, type: 'file' }, function (err, file) { if (err) { - logger.err( - { err, projectId, fileId, queryString }, - 'error finding element for downloading file' - ) + if (err.name === 'NotFoundError') { + logger.warn( + { err, projectId, fileId, queryString }, + 'entity not found when downloading file' + ) + } else { + logger.err( + { err, projectId, fileId, queryString }, + 'error finding element for downloading file' + ) + } return res.sendStatus(500) } FileStoreHandler.getFileStream(