mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 11:54:44 -06: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:
commit
ab93b7d35d
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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user