Browse Source

Merge pull request 'fix-1968- 解决启动文件报错无返回的问题' (#2623) from fix-2454 into V20220801

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2623
Reviewed-by: zhoupzh <zhoupzh@pcl.ac.cn>
tags/v1.22.7.2^2
zhoupzh 3 years ago
parent
commit
e423a6b682
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      routers/repo/cloudbrain.go

+ 2
- 0
routers/repo/cloudbrain.go View File

@@ -309,6 +309,7 @@ func CloudBrainCreate(ctx *context.Context, form auth.CreateCloudBrainForm) {
commandTrain, err := getTrainJobCommand(form)
if err != nil {
log.Error("getTrainJobCommand failed: %v", err)
cloudBrainNewDataPrepare(ctx)
ctx.RenderWithErr(err.Error(), tpl, &form)
return
}
@@ -397,6 +398,7 @@ func CloudBrainInferenceJobCreate(ctx *context.Context, form auth.CreateCloudBra
command, err := getInferenceJobCommand(form)
if err != nil {
log.Error("getTrainJobCommand failed: %v", err)
cloudBrainNewDataPrepare(ctx)
ctx.RenderWithErr(err.Error(), tpl, &form)
return
}


Loading…
Cancel
Save