Skip to content

Commit

Permalink
Merge pull request #12 from aui/master
Browse files Browse the repository at this point in the history
v1.0.3
  • Loading branch information
aui committed Jul 20, 2017
2 parents 1b86c11 + c27c499 commit f3a230f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v1.0.3

1. 修复子进程意外退出后的错误信息显示

## v1.0.2

1. 修复运行 `npm` 命令可能报 “Maximum call stack size exceeded” 问题
Expand Down
4 changes: 2 additions & 2 deletions lib/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ module.exports = (command, options = {}) => {
});


child.on('exit', code => {
child.on('exit', (code, signal) => {
if (code === 0) {
callback(null);
} else {
callback(new Error(`exec "${command}": child process exited with code ${code}`));
callback(new Error(`exec "${command}": child process terminated due to receipt of signal ${signal}`));
}
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ci-task-runner",
"version": "1.0.2",
"version": "1.0.3",
"description": "this is a multiprocess building tasks scheduler",
"main": "src/index.js",
"bin": "bin/ci-task-runner",
Expand Down

0 comments on commit f3a230f

Please sign in to comment.