Browse Source

fix-bug

tags/V1.22.3.1^2
liuzx 3 years ago
parent
commit
87405f1c71
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/repo/cloudbrain.go

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

@@ -1229,7 +1229,7 @@ func CloudBrainBenchmarkCreate(ctx *context.Context, form auth.CreateCloudBrainF
if strings.EqualFold(task.DisplayJobName, displayJobName) {
log.Error("the job name did already exist", ctx.Data["MsgID"])
cloudBrainNewDataPrepare(ctx)
ctx.RenderWithErr("the job name did already exist", tplCloudBrainNew, &form)
ctx.RenderWithErr("the job name did already exist", tplCloudBrainBenchmarkNew, &form)
return
}
}
@@ -1237,7 +1237,7 @@ func CloudBrainBenchmarkCreate(ctx *context.Context, form auth.CreateCloudBrainF
if !models.IsErrJobNotExist(err) {
log.Error("system error, %v", err, ctx.Data["MsgID"])
cloudBrainNewDataPrepare(ctx)
ctx.RenderWithErr("system error", tplCloudBrainNew, &form)
ctx.RenderWithErr("system error", tplCloudBrainBenchmarkNew, &form)
return
}
}


Loading…
Cancel
Save