Browse Source

opt the error msg

tags/v1.22.2.1^2
lewis 3 years ago
parent
commit
af909dd02d
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      routers/repo/modelarts.go

+ 4
- 1
routers/repo/modelarts.go View File

@@ -386,7 +386,10 @@ func NotebookManage(ctx *context.Context) {
if err != nil {
log.Error("ManageNotebook2(%s) failed:%v", task.JobName, err.Error(), ctx.Data["MsgID"])
resultCode = "-1"
errorMsg = "启动失败"
errorMsg = err.Error()
if strings.Contains(err.Error(), "ModelArts.6404") {
errorMsg = "the job's version is too old and can not be restarted"
}
break
}



Loading…
Cancel
Save