Skip to content

Commit f3a230f

Browse files
authored
Merge pull request #12 from aui/master
v1.0.3
2 parents 1b86c11 + c27c499 commit f3a230f

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v1.0.3
2+
3+
1. 修复子进程意外退出后的错误信息显示
4+
15
## v1.0.2
26

37
1. 修复运行 `npm` 命令可能报 “Maximum call stack size exceeded” 问题

lib/worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ module.exports = (command, options = {}) => {
4444
});
4545

4646

47-
child.on('exit', code => {
47+
child.on('exit', (code, signal) => {
4848
if (code === 0) {
4949
callback(null);
5050
} else {
51-
callback(new Error(`exec "${command}": child process exited with code ${code}`));
51+
callback(new Error(`exec "${command}": child process terminated due to receipt of signal ${signal}`));
5252
}
5353
});
5454

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ci-task-runner",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "this is a multiprocess building tasks scheduler",
55
"main": "src/index.js",
66
"bin": "bin/ci-task-runner",

0 commit comments

Comments
 (0)