Send a 404 if the project files have gone away when running synctex.

This is semantically nicer than the 500 response which used to be
produced in these circumstances.
This commit is contained in:
Shane Kilkelly
2017-06-23 14:46:40 +01:00
parent 8e2584bab4
commit a74f4ac1a6
3 changed files with 20 additions and 4 deletions

10
app/coffee/Errors.coffee Normal file
View File

@@ -0,0 +1,10 @@
NotFoundError = (message) ->
error = new Error(message)
error.name = "NotFoundError"
error.__proto__ = NotFoundError.prototype
return error
NotFoundError.prototype.__proto__ = Error.prototype
module.exports = Errors =
NotFoundError: NotFoundError