Skip to content

Commit dda298e

Browse files
committed
fix: update request guild
1 parent 7ef11c5 commit dda298e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/content/guide/request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func main() {
191191
return
192192
}
193193
if err = c.Validate(u); err != nil {
194-
return
194+
return echo.NewHTTPError(http.StatusBadRequest, err.Error())
195195
}
196196
return c.JSON(http.StatusOK, u)
197197
})

0 commit comments

Comments
 (0)