From 989ed702656f4a3467a9db985c485c54d5219e52 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 26 Mar 2024 23:14:50 -0400 Subject: [PATCH] fix: client does not return ErrBucketNotFound, only the string error --- renter/renter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renter/renter.go b/renter/renter.go index 5049b02..6e24701 100644 --- a/renter/renter.go +++ b/renter/renter.go @@ -89,7 +89,7 @@ func (r *RenterDefault) CreateBucketIfNotExists(bucket string) error { return nil } - if !errors.Is(err, api.ErrBucketNotFound) { + if strings.Contains(err.Error(), api.ErrBucketNotFound.Error()) { return err }