|
|
|
@@ -366,10 +366,14 @@ 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 { |
|
|
|
if temp.ErrorCode == "ModelArts.0404" { |
|
|
|
temp.ErrorCode = "0404" |
|
|
|
temp.ErrorMsg = "启动文件未找到!" |
|
|
|
} |
|
|
|
if temp.ErrorCode == "ModelArts.0104" { |
|
|
|
temp.ErrorCode = "0104" |
|
|
|
temp.ErrorMsg = "运行参数错误!" |
|
|
|
} |
|
|
|
return &result, fmt.Errorf("createTrainJob failed(%d):%s(%s)", res.StatusCode(), temp.ErrorCode, temp.ErrorMsg) |
|
|
|
} |
|
|
|
|
|
|
|
|