@@ -1249,9 +1249,9 @@ func CloudBrainBenchmarkCreate(ctx *context.Context, form auth.CreateCloudBrainF
if _, err := os.Stat(codePath + "/train.py"); err != nil {
if os.IsNotExist(err) {
// file does not exist
log.Error("train.py i s not exist, %v", err, ctx.Data["MsgID"])
log.Error("train.py doe s not exist, %v", err, ctx.Data["MsgID"])
cloudBrainNewDataPrepare(ctx)
ctx.RenderWithErr("train.py i s not exist", tplCloudBrainBenchmarkNew, &form)
ctx.RenderWithErr("train.py doe s not exist", tplCloudBrainBenchmarkNew, &form)
} else {
log.Error("Stat failed, %v", err, ctx.Data["MsgID"])
cloudBrainNewDataPrepare(ctx)
@@ -1261,9 +1261,9 @@ func CloudBrainBenchmarkCreate(ctx *context.Context, form auth.CreateCloudBrainF
} else if _, err := os.Stat(codePath + "/test.py"); err != nil {
if os.IsNotExist(err) {
// file does not exist
log.Error("test.py i s not exist, %v", err, ctx.Data["MsgID"])
log.Error("test.py doe s not exist, %v", err, ctx.Data["MsgID"])
cloudBrainNewDataPrepare(ctx)
ctx.RenderWithErr("test.py i s not exist", tplCloudBrainBenchmarkNew, &form)
ctx.RenderWithErr("test.py doe s not exist", tplCloudBrainBenchmarkNew, &form)
} else {
log.Error("Stat failed, %v", err, ctx.Data["MsgID"])
cloudBrainNewDataPrepare(ctx)