Преглед изворни кода

添加add_optionset接口错误打印信息

huangyh пре 6 година
родитељ
комит
8febdd4843
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      controllers/partial/SystemController.go

+ 1 - 1
controllers/partial/SystemController.go

@@ -2196,7 +2196,7 @@ func System_AddOptionset(c *entitys.CtrlContext) {
 	if err == nil {
 		c.Ctx.JSON(200, sysmodel.SysReturn{200, "", nil})
 	} else {
-		c.Ctx.JSON(500, sysmodel.SysReturn{500, "", nil})
+		c.Ctx.JSON(500, sysmodel.SysReturn{500, err.Error(), nil})
 	}
 }