Skip to content

Commit

Permalink
Fix: ignores killed tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Aug 26, 2015
1 parent 736dee0 commit 76d87cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function runAllSequencially(tasks, stdin, stdout, stderr) {
currentPromise = runTask(task, stdin, stdout, stderr);
return currentPromise.then(item => {
currentPromise = null;
if (item.code !== 0) {
if (item.code !== 0 && item.code != null) {
throw new Error(
`${item.task}: None-Zero Exit(${item.code});`);
}
Expand Down

0 comments on commit 76d87cb

Please sign in to comment.