Merge pull request #1517 from Arnavion/exec-call-fail

Fail the surrounding Jake task if exec'd tool has non-zero exit code.
This commit is contained in:
Mohamed Hegazy 2014-12-16 16:54:15 -08:00
commit ab93b7d35d

View File

@ -465,14 +465,10 @@ function exec(cmd, completeHandler) {
complete();
});
ex.addListener("error", function(e, status) {
console.error("Process exited with code " + status);
complete();
fail("Process exited with code " + status);
})
try{
ex.run();
} catch(e) {
console.log('Exception: ' + e)
}
ex.run();
}
function cleanTestDirs() {