mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-20 01:16:36 +08:00
无效的请求返回具体原因
This commit is contained in:
parent
bdd611fd33
commit
b86bc169a5
@ -50,7 +50,7 @@ func Distribute() func(c *gin.Context) {
|
||||
err = common.UnmarshalBodyReusable(c, &modelRequest)
|
||||
}
|
||||
if err != nil {
|
||||
abortWithMessage(c, http.StatusBadRequest, "无效的请求")
|
||||
abortWithMessage(c, http.StatusBadRequest, "无效的请求: "+err.Error())
|
||||
return
|
||||
}
|
||||
if strings.HasPrefix(c.Request.URL.Path, "/v1/moderations") {
|
||||
|
Loading…
Reference in New Issue
Block a user