Browse Source

启动文件报错无返回

tags/v1.22.7.2^2
liuzx 3 years ago
parent
commit
1e326de85c
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