diff --git a/packages/engine/src/actions/index.ts b/packages/engine/src/actions/index.ts index 7bcf15d..40d9644 100644 --- a/packages/engine/src/actions/index.ts +++ b/packages/engine/src/actions/index.ts @@ -157,13 +157,13 @@ You can still use them now, but we suggest to modify them.`) }); // Listen to the 'data' event of stderr. Append the data chunk to the logger and the stderr array. - // 20241125: aliyun task worker wouldn't output stderr - if (utils.getCurrentEnvironment() !== 'app_center'){ - cp.stderr.on('data', (chunk: Buffer) => { - this.logger.append(chunk.toString()); - stderr.push(chunk); - }); - } + cp.stderr.on('data', (chunk: Buffer) => { + this.logger.append(chunk.toString()); + // 20241125: aliyun task worker wouldn't output stderr + if (utils.getCurrentEnvironment() !== 'app_center'){ + stderr.push(chunk) + } + }); // Listen to the 'exit' event of the command process. // If the process exits with a code of 0, resolve the promise.