mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-12 20:01:02 -05:00
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:
10
Jakefile
10
Jakefile
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user