mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 03:01:19 +00:00
log an error if core file is found in output
This commit is contained in:
parent
45adf904b7
commit
e18538bd38
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue