fix CompileManager and LocalCommandRunner

This commit is contained in:
Tailing Yuan
2019-10-04 22:34:45 +08:00
parent 2675fa033e
commit 481a49a587
2 changed files with 8 additions and 4 deletions

View File

@@ -250,7 +250,7 @@ module.exports = CompileManager =
directory = getCompileDir(project_id, user_id)
timeout = 60 * 1000 # increased to allow for large projects
compileName = getCompileName(project_id, user_id)
CommandRunner.run compileName, command, directory, Settings.clsi.docker.image, timeout, {}, (error, output) ->
CommandRunner.run compileName, command, directory, Settings.clsi?.docker.image, timeout, {}, (error, output) ->
if error?
logger.err err:error, command:command, project_id:project_id, user_id:user_id, "error running synctex"
return callback(error)