Fixing Unwrapable interface again
This commit is contained in:
parent
ab36acbd66
commit
2334bd034e
1 changed files with 1 additions and 1 deletions
2
error.go
2
error.go
|
@ -22,7 +22,7 @@ func enshureUnwrapable(err error) error {
|
||||||
if isUnwrapable(err) {
|
if isUnwrapable(err) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return fmt.Errorf("%v",err)
|
return fmt.Errorf("%w",err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
func filterNilErrors(errs []error) (notNilErrs []error) {
|
func filterNilErrors(errs []error) (notNilErrs []error) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue