entc/gen: revert unwrapping logic for validation error (#721)

Fixed #698
This commit is contained in:
Ariel Mashraki
2020-09-01 12:06:46 +03:00
committed by GitHub
parent 86b36e7adf
commit 750a19c118
27 changed files with 40 additions and 30 deletions

View File

@@ -113,7 +113,7 @@ func (e *ValidationError) Error() string {
// Unwrap implements the errors.Wrapper interface.
func (e *ValidationError) Unwrap() error {
return errors.Unwrap(e.err)
return e.err
}
// IsValidationError returns a boolean indicating whether the error is a validaton error.