Explorar el Código

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

log an error if core file is found in output
Brian Gough hace 8 años
padre
commit
78f2fdd25b
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      services/clsi/app/coffee/CompileController.coffee

+ 4 - 0
services/clsi/app/coffee/CompileController.coffee

@@ -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 {