mirror of
https://gitee.com/openharmony/developtools_ace_js2bundle
synced 2024-11-27 01:20:27 +00:00
Fix exit code fail
Signed-off-by: zhangrengao <zhangrengao1@huawei.com> Change-Id: I0c227222d5ebdd9536125bbad05c97ad41a5fa18
This commit is contained in:
parent
19ce7c32ce
commit
fb624a913d
@ -298,6 +298,9 @@ function invokeWorkerToGenAbc() {
|
||||
cluster.removeAllListeners("exit");
|
||||
}
|
||||
cluster.on('exit', (worker, code, signal) => {
|
||||
if (code === FAIL) {
|
||||
process.exitCode = FAIL;
|
||||
}
|
||||
count_++;
|
||||
if (count_ === workerNumber) {
|
||||
// for preview of with incre compile
|
||||
|
Loading…
Reference in New Issue
Block a user