Browse Source

添加错误返回时返回错误信息

pull/141/head
zhangxin 3 years ago
parent
commit
321ca3b7c8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      web/controllers/snrtab_controller.go

+ 1
- 1
web/controllers/snrtab_controller.go View File

@ -108,7 +108,7 @@ func InsertSnrtab(ctx iris.Context) {
}
err := data.Add()
if err != nil{
supports.Error(ctx, iris.StatusBadRequest,"添加失败!", nil)
supports.Error(ctx, iris.StatusBadRequest,"添加失败!error: " + err.Error(), nil)
return
}
supports.Ok(ctx, supports.OptionSuccess, data)


Loading…
Cancel
Save