diff --git a/src/frontend/devops-pipeline/src/components/ExecPipeline.vue b/src/frontend/devops-pipeline/src/components/ExecPipeline.vue index 51b4aee3727..b8f63c4d319 100644 --- a/src/frontend/devops-pipeline/src/components/ExecPipeline.vue +++ b/src/frontend/devops-pipeline/src/components/ExecPipeline.vue @@ -358,8 +358,8 @@ errorList () { return this.execDetail?.errorInfoList?.map((error, index) => ({ ...error, - errorTypeAlias: this.$t(errorTypeMap[error.errorType].title), - errorTypeConf: errorTypeMap[error.errorType] + errorTypeAlias: this.$t(errorTypeMap[error.errorType]?.title ?? errorTypeMap[0]?.title), + errorTypeConf: errorTypeMap[error.errorType] ?? errorTypeMap[0] })) }, showErrorPopup () { diff --git a/src/frontend/devops-pipeline/src/utils/pipelineConst.js b/src/frontend/devops-pipeline/src/utils/pipelineConst.js index ea27e0ff638..5b61b41a01a 100755 --- a/src/frontend/devops-pipeline/src/utils/pipelineConst.js +++ b/src/frontend/devops-pipeline/src/utils/pipelineConst.js @@ -101,6 +101,10 @@ export const errorTypeMap = [ { title: 'pluginError', icon: 'error-plugin' + }, + { + title: 'containerError', + icon: 'error-node' } ] diff --git a/src/frontend/locale/pipeline/en-US.json b/src/frontend/locale/pipeline/en-US.json index 053bf3d0ea4..d5c5291e019 100644 --- a/src/frontend/locale/pipeline/en-US.json +++ b/src/frontend/locale/pipeline/en-US.json @@ -40,6 +40,7 @@ "systemError": "SYSTEM", "thirdPartyError": "THIRD_PARTY", "pluginError": "PLUGIN", + "containerError": "AGENT", "createTime": "Create time", "retry": "Retry", "resume": "Continue", diff --git a/src/frontend/locale/pipeline/zh-CN.json b/src/frontend/locale/pipeline/zh-CN.json index 1dc4ff7d68e..22f353d54bb 100644 --- a/src/frontend/locale/pipeline/zh-CN.json +++ b/src/frontend/locale/pipeline/zh-CN.json @@ -28,6 +28,7 @@ "systemError": "系统运行错误", "thirdPartyError": "第三方系统错误", "pluginError": "插件执行错误", + "containerError": "构建机执行错误", "create": "创建", "createTime": "创建时间", "add": "新建", diff --git a/src/frontend/svg-sprites/pipeline/error-node.svg b/src/frontend/svg-sprites/pipeline/error-node.svg new file mode 100644 index 00000000000..d8ae47d4602 --- /dev/null +++ b/src/frontend/svg-sprites/pipeline/error-node.svg @@ -0,0 +1,6 @@ + + + + + +