Просмотр исходного кода

Merge branch 'master' into ho-dockerise

Henry Oswald 8 лет назад
Родитель
Сommit
1320854da9
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      services/clsi/app/coffee/CompileController.coffee

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

@@ -40,9 +40,15 @@ module.exports = CompileController =
 						for file in outputFiles
 							if file.path?.match(/output\.pdf$/)
 								status = "success"
+
 						if status == "failure"
 							logger.err project_id: request.project_id, outputFiles:outputFiles, "project failed to compile successfully, no output.pdf generated"
 
+						# 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 {
 						compile: