fix: 优化 RunnableError错误信息展示

- 确保在不同错误场景下都能正确显示错误详情
pull/409/head
xiaojunnuo 2025-05-25 20:50:15 +08:00
parent 1db1ffde99
commit 36bc3ff22d
1 changed files with 1 additions and 1 deletions

View File

@ -438,7 +438,7 @@ export class Executor {
const runnableError = error as RunnableError;
content = `流水线ID:${this.pipeline.id}运行ID:${this.runtime.id}\n\n`;
for (const re of runnableError.errors) {
content += ` - ${re.runnable.title} 执行失败,错误详情:${re.e?.error?.message}\n\n`;
content += ` - ${re.runnable.title} 执行失败,错误详情:${re.e.message || re.e?.error?.message}\n\n`;
}
} else {
content = `流水线ID:${this.pipeline.id}运行ID:${this.runtime.id}\n\n${this.currentStatusMap?.currentStep?.title} 执行失败\n\n错误详情:${error.message}`;