From da72420bb9505a73aa9ac2ae232cf49171037ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sat, 24 Aug 2024 04:58:13 +0800 Subject: [PATCH] fix: error check --- binder/form.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/binder/form.go b/binder/form.go index 0b469086c7..f45407fe93 100644 --- a/binder/form.go +++ b/binder/form.go @@ -40,6 +40,10 @@ func (b *formBinding) Bind(reqCtx *fasthttp.RequestCtx, out any) error { } }) + if err != nil { + return err + } + return parse(b.Name(), out, data) }