v3: fix undefined function

pull/1979/head
M. Efe Çetin 2022-08-08 10:21:51 +03:00 committed by GitHub
parent eacde70294
commit 406ab3177f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ func (b *Bind) Must() *Bind {
func (b *Bind) returnErr(err error) error {
if !b.should {
b.ctx.Status(StatusBadRequest)
return NewErrors(StatusBadRequest, "Bad request: "+err.Error())
return NewError(StatusBadRequest, "Bad request: "+err.Error())
}
return err