fix: client does not return ErrBucketNotFound, only the string error
This commit is contained in:
parent
d03a781e18
commit
989ed70265
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue