Skip to content

Commit 06d53e0

Browse files
authored
Merge pull request #153 from aupous/update-request-guild
fix: update request guild
2 parents 61139bf + fdc5252 commit 06d53e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/content/guide/request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ func main() {
188188
e.POST("/users", func(c echo.Context) (err error) {
189189
u := new(User)
190190
if err = c.Bind(u); err != nil {
191-
return
191+
return echo.NewHTTPError(http.StatusBadRequest, err.Error())
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)