Browse Source

error_msg

tags/v1.21.12.1
yuyuanshifu 5 years ago
parent
commit
3e70eee793
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/modelarts/resty.go

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

@@ -121,6 +121,9 @@ sendjob:

if len(response.ErrorCode) != 0 {
log.Error("CreateJob failed(%s): %s", response.ErrorCode, response.ErrorMsg)
if response.ErrorCode == "ModelArts.0118" {
response.ErrorMsg = "所选规格使用数量已超过最大配额限制。"
}
return &result, fmt.Errorf("CreateJob failed(%s): %s", response.ErrorCode, response.ErrorMsg)
}



Loading…
Cancel
Save