add error handler on CommandRunner
This commit is contained in:
1 parent
0da85d5d03
commit
2e97bcba3a
1 file changed
+3
@@ -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()
|
||||
Reference in new issue
Block a user