Fail the surrounding Jake task if exec'd tool has non-zero exit code.

This commit is contained in:
Arnavion
2014-12-16 15:28:36 -08:00
parent adb0393458
commit 8c76a4ebd3

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() {