From bafa2774dad730afaef564ab871a5d1e3b21684e Mon Sep 17 00:00:00 2001 From: Harri Lainio Date: Mon, 25 Sep 2023 18:24:30 +0300 Subject: [PATCH] rm errors.Join --- err2_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 }