Merge pull request #59 from sharelatex/bg-reduce-clsi-error-reporting

don't report compile timeouts to sentry
This commit is contained in:
Brian Gough
2017-05-30 15:39:04 +01:00
committed by GitHub

View File

@@ -20,12 +20,13 @@ module.exports = CompileController =
else if error?.validate
status = "validation-#{error.validate}"
else if error?
logger.error err: error, project_id: request.project_id, "error running compile"
if error.timedout
status = "timedout"
logger.log err: error, project_id: request.project_id, "timeout running compile"
else
status = "error"
code = 500
logger.error err: error, project_id: request.project_id, "error running compile"
else
status = "failure"
for file in outputFiles