Fixing Unwrapable interface the other time

This commit is contained in:
Foil-hat-guy 2025-05-08 11:48:14 +03:00
parent 2334bd034e
commit d8f8d5b1ef
No known key found for this signature in database
GPG key ID: 221CC305A7B23591

View file

@ -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) {