From 48a4f6c4c4aa75be0d01f4d505153ffc85142bcd Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Wed, 13 Jun 2018 14:49:16 +0100 Subject: [PATCH] Fix error handling for failing to get output file --- .../coffee/Features/LinkedFiles/ProjectOutputFileAgent.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/app/coffee/Features/LinkedFiles/ProjectOutputFileAgent.coffee b/services/web/app/coffee/Features/LinkedFiles/ProjectOutputFileAgent.coffee index 8af8b5bf63..fff464945a 100644 --- a/services/web/app/coffee/Features/LinkedFiles/ProjectOutputFileAgent.coffee +++ b/services/web/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