diff --git a/ace-loader/src/genAbc-plugin.js b/ace-loader/src/genAbc-plugin.js index f938f30..c0f44ba 100644 --- a/ace-loader/src/genAbc-plugin.js +++ b/ace-loader/src/genAbc-plugin.js @@ -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