entc/gen: fix validation error unwrapping (#670)

This commit is contained in:
Ariel Mashraki
2020-08-14 20:45:04 +03:00
committed by GitHub
parent d9c8130d08
commit 6fe7023d6a
26 changed files with 30 additions and 26 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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