Merge pull request #82 from sharelatex/bg-log-core-files-as-error

log an error if core file is found in output
This commit is contained in:
Brian Gough authored and GitHub committed 2018-01-04 09:22:44 +00:00
commit 7d8a18c46c
1 file changed
+4
+4
View File
@@ -39,6 +39,10 @@ module.exports = CompileController =
for file in outputFiles
if file.path?.match(/output\.pdf$/)
status = "success"
# log an error if any core files are found
for file in outputFiles
if file.path is "core"
logger.error project_id:request.project_id, req:req, outputFiles:outputFiles, "core file found in output"
timer.done()
res.status(code or 200).send {