fix commandRunner error to match dockerRunner

This commit is contained in:
Brian Gough 2016-08-24 15:45:26 +01:00
parent 1af44b32b3
commit 481e842f33

View file

@ -27,8 +27,8 @@ module.exports = CommandRunner =
err = new Error("terminated")
err.terminated = true
return callback(err)
else if code
err = new Error("exit")
else if code is 1 # exit status from chktex
err = new Error("exited")
err.code = code
return callback(err)
else