workflow-ai 1.0.28 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/runner.mjs
CHANGED
|
@@ -940,8 +940,14 @@ class StageExecutor {
|
|
|
940
940
|
const err = new Error(`Agent exited with code ${code}`);
|
|
941
941
|
err.code = 'NON_ZERO_EXIT';
|
|
942
942
|
err.exitCode = code;
|
|
943
|
+
err.stderr = stderr;
|
|
943
944
|
if (this.logger) {
|
|
944
945
|
this.logger.error(`Agent exited with code ${code}`, stageId);
|
|
946
|
+
if (stderr.trim()) {
|
|
947
|
+
for (const line of stderr.trim().split('\n')) {
|
|
948
|
+
this.logger.error(` stderr: ${line}`, stageId);
|
|
949
|
+
}
|
|
950
|
+
}
|
|
945
951
|
}
|
|
946
952
|
reject(err);
|
|
947
953
|
return;
|