Fixing Unwrapable interface the other time
This commit is contained in:
parent
2334bd034e
commit
d8f8d5b1ef
1 changed files with 2 additions and 1 deletions
3
error.go
3
error.go
|
@ -2,6 +2,7 @@ package stty
|
|||
|
||||
import(
|
||||
"fmt"
|
||||
"errors"
|
||||
)
|
||||
|
||||
type unwraperr interface {
|
||||
|
@ -22,7 +23,7 @@ func enshureUnwrapable(err error) error {
|
|||
if isUnwrapable(err) {
|
||||
return err
|
||||
}
|
||||
return fmt.Errorf("%w",err.Error())
|
||||
return errors.New(err.Error())
|
||||
}
|
||||
|
||||
func filterNilErrors(errs []error) (notNilErrs []error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue