Merge branch 'sk-reduce-kill-project-errors'

This commit is contained in:
Shane Kilkelly 2017-06-27 10:03:51 +01:00
commit 577cf7ef4c

View file

@ -58,7 +58,8 @@ module.exports = LatexRunner =
id = "#{project_id}"
logger.log {id:id}, "killing running compile"
if not ProcessTable[id]?
return callback new Error("no such project to kill")
logger.warn {id}, "no such project to kill"
return callback(null)
else
CommandRunner.kill ProcessTable[id], callback