diff --git a/app/coffee/Features/LinkedFiles/ProjectOutputFileAgent.coffee b/app/coffee/Features/LinkedFiles/ProjectOutputFileAgent.coffee index 8af8b5bf636f32cda66c4d349a3faa45127e7656..fff464945aa2f7a97ce909c230043ecb3d0b2b8e 100644 --- a/app/coffee/Features/LinkedFiles/ProjectOutputFileAgent.coffee +++ b/app/coffee/Features/LinkedFiles/ProjectOutputFileAgent.coffee @@ -88,8 +88,8 @@ module.exports = ProjectOutputFileAgent = { handleError: (error, req, res, next) -> if error instanceof BadDataError res.status(400).send("The submitted data is not valid") - else if error instanceof SourceFileNotFoundError - res.status(404).send("Source file not found") + else if error instanceof OutputFileFetchFailedError + res.status(404).send("Could not get output file") else if error instanceof ProjectNotFoundError res.status(404).send("Project not found") else