fix: client does not return ErrBucketNotFound, only the string error

This commit is contained in:
Derrick Hammer 2024-03-26 23:14:50 -04:00
parent d03a781e18
commit 989ed70265
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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
}