1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-08 14:51:56 +00:00

Merge pull request 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 2018-01-04 09:22:44 +00:00 committed by GitHub
commit 78f2fdd25b

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 {