mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
add error handler on CommandRunner
This commit is contained in:
parent
bd55e18d6b
commit
d140964c5f
1 changed files with 3 additions and 0 deletions
|
@ -8,5 +8,8 @@ module.exports = CommandRunner =
|
|||
logger.warn "timeouts and sandboxing are not enabled with CommandRunner"
|
||||
|
||||
proc = spawn command[0], command.slice(1), stdio: "inherit", cwd: directory
|
||||
proc.on "error", (err)->
|
||||
logger.err err:err, project_id:project_id, command: command, directory: directory, "error running command"
|
||||
callback(err)
|
||||
proc.on "close", () ->
|
||||
callback()
|
Loading…
Reference in a new issue