Skip to content

Commit 42c60a5

Browse files
committed
fix API form error format - closes lichess-org#4646
1 parent ce565f9 commit 42c60a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/LilaController.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ private[controllers] trait LilaController
473473
}
474474

475475
protected def jsonFormError(err: Form[_])(implicit lang: play.api.i18n.Lang) =
476-
fuccess(BadRequest(errorsAsJson(err)))
476+
fuccess(BadRequest(jsonError(errorsAsJson(err))))
477477

478478
protected def pageHit(implicit ctx: lila.api.Context) =
479479
if (HTTPRequest isHuman ctx.req) lila.mon.http.request.path(ctx.req.path)()

0 commit comments

Comments
 (0)