From a0d5e6a54bfb380f8acbbe63ad65b28afa5382cb Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Wed, 3 Jan 2018 15:41:31 +0000 Subject: [PATCH] log an error if core file is found in output --- app/coffee/CompileController.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/coffee/CompileController.coffee b/app/coffee/CompileController.coffee index 99973fd..1d90405 100644 --- a/app/coffee/CompileController.coffee +++ b/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 {