diff --git a/err2_test.go b/err2_test.go index a13636d..38a5c33 100644 --- a/err2_test.go +++ b/err2_test.go @@ -1,7 +1,6 @@ package err2_test import ( - "errors" "fmt" "io" "os" @@ -905,9 +904,9 @@ func doWork(ePtr *error, r any) { case nil: return case runtime.Error: - *ePtr = errors.Join(v, *ePtr) + *ePtr = fmt.Errorf("%v: %w", *ePtr, v) case error: - *ePtr = errors.Join(v, *ePtr) + *ePtr = fmt.Errorf("%v: %w", *ePtr, v) default: // panicing }