Browse Source

Merge pull request '修改训练作业创建失败提示语' (#642) from liuzx_trainjob into V20211101

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/642
Reviewed-by: lewis <747342561@qq.com>
tags/v1.21.12.1
lewis 4 years ago
parent
commit
4c2f603f70
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      modules/modelarts/resty.go

+ 4
- 0
modules/modelarts/resty.go View File

@@ -366,6 +366,10 @@ sendjob:
return &result, fmt.Errorf("json.Unmarshal failed(%s): %v", res.String(), err.Error())
}
log.Error("createTrainJob failed(%d):%s(%s)", res.StatusCode(), temp.ErrorCode, temp.ErrorMsg)
if res.StatusCode() == 400 {
temp.ErrorCode = "0404"
temp.ErrorMsg = "启动文件未找到!"
}
return &result, fmt.Errorf("createTrainJob failed(%d):%s(%s)", res.StatusCode(), temp.ErrorCode, temp.ErrorMsg)
}



Loading…
Cancel
Save