From d140964c5f3aa397b2cd22d326c31a8a467f5d52 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Mon, 23 May 2016 14:13:55 +0100 Subject: [PATCH] add error handler on CommandRunner --- services/clsi/app/coffee/CommandRunner.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/clsi/app/coffee/CommandRunner.coffee b/services/clsi/app/coffee/CommandRunner.coffee index 41cbfaa8ef..842eb9dbb8 100644 --- a/services/clsi/app/coffee/CommandRunner.coffee +++ b/services/clsi/app/coffee/CommandRunner.coffee @@ -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() \ No newline at end of file