Browse Source

mod error info

pull/2422/head
lewis 3 years ago
parent
commit
10a0b0c3bd
3 changed files with 4 additions and 1 deletions
  1. +2
    -0
      options/locale/locale_en-US.ini
  2. +1
    -0
      options/locale/locale_zh-CN.ini
  3. +1
    -1
      routers/repo/cloudbrain.go

+ 2
- 0
options/locale/locale_en-US.ini View File

@@ -3077,3 +3077,5 @@ TRAIN = TRAIN
INFERENCE = INFERENCE INFERENCE = INFERENCE
BENCHMARK = BENCHMARK BENCHMARK = BENCHMARK
brain_area = Brain Area brain_area = Brain Area

error.dataset_select = dataset select error:the count exceed the limit or has same name

+ 1
- 0
options/locale/locale_zh-CN.ini View File

@@ -3094,3 +3094,4 @@ INFERENCE = 推理任务
BENCHMARK = 评测任务 BENCHMARK = 评测任务
brain_area = 脑区 brain_area = 脑区


error.dataset_select = 数据集选择错误:数量超过限制或者有同名数据集

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

@@ -265,7 +265,7 @@ func CloudBrainCreate(ctx *context.Context, form auth.CreateCloudBrainForm) {
if err != nil { if err != nil {
log.Error("GetDatasetInfo failed: %v", err, ctx.Data["MsgID"]) log.Error("GetDatasetInfo failed: %v", err, ctx.Data["MsgID"])
cloudBrainNewDataPrepare(ctx) cloudBrainNewDataPrepare(ctx)
ctx.RenderWithErr("GetDatasetInfo failed", tpl, &form)
ctx.RenderWithErr(ctx.Tr("repo.cloudbrain.error.dataset_select"), tpl, &form)
return return
} }




Loading…
Cancel
Save