Skip to content
Snippets Groups Projects
Verified Commit 124b8e63 authored by Shane Kilkelly's avatar Shane Kilkelly Committed by David Mehren
Browse files

Fix error handling for failing to get output file

parent 56182449
No related branches found
No related tags found
No related merge requests found
...@@ -88,8 +88,8 @@ module.exports = ProjectOutputFileAgent = { ...@@ -88,8 +88,8 @@ module.exports = ProjectOutputFileAgent = {
handleError: (error, req, res, next) -> handleError: (error, req, res, next) ->
if error instanceof BadDataError if error instanceof BadDataError
res.status(400).send("The submitted data is not valid") res.status(400).send("The submitted data is not valid")
else if error instanceof SourceFileNotFoundError else if error instanceof OutputFileFetchFailedError
res.status(404).send("Source file not found") res.status(404).send("Could not get output file")
else if error instanceof ProjectNotFoundError else if error instanceof ProjectNotFoundError
res.status(404).send("Project not found") res.status(404).send("Project not found")
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment