Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: interface conversion: error is govalidator.Errors, not govalidator.Error #4

Open
gregwebs opened this issue Oct 29, 2018 · 0 comments · May be fixed by #6
Open

panic: interface conversion: error is govalidator.Errors, not govalidator.Error #4

gregwebs opened this issue Oct 29, 2018 · 0 comments · May be fixed by #6

Comments

@gregwebs
Copy link

gregwebs commented Oct 29, 2018

Latest master has this issue:

panic: interface conversion: error is govalidator.Errors, not govalidator.Error

goroutine 1 [running]:
github.com/qor/validations.flatValidatorErrors(0xc420025cc0, 0x3, 0x4, 0x753640, 0xc42000be00, 0xc4204afd00)
	github.com/qor/validations/callbacks.go:42 +0x586
github.com/qor/validations.validate(0xc42027f700)
	github.com/qor/validations/callbacks.go:24 +0x1c9
github.com/jinzhu/gorm.(*Scope).callCallbacks(0xc42027f700, 0xc420199780, 0xa, 0x10, 0x525a7f)
	github.com/jinzhu/gorm/scope.go:798 +0x55
github.com/jinzhu/gorm.(*DB).Create(0xc420277040, 0x6daa40, 0xc4205742a0, 0xc4205742a0)
	github.com/jinzhu/gorm/main.go:372 +0x86
r00tkillah added a commit to r00tkillah/validations that referenced this issue Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant