browser: Avoid logging BucketNotEmpty error (#8110)

This commit is contained in:
poornas
2019-08-21 13:01:46 -07:00
committed by Harshavardhana
parent de736f2864
commit 2e19619e79
2 changed files with 3 additions and 1 deletions

View File

@@ -1972,6 +1972,8 @@ func toWebAPIError(ctx context.Context, err error) APIError {
return getAPIError(ErrStorageFull)
case BucketNotFound:
return getAPIError(ErrNoSuchBucket)
case BucketNotEmpty:
return getAPIError(ErrBucketNotEmpty)
case BucketExists:
return getAPIError(ErrBucketAlreadyOwnedByYou)
case BucketNameInvalid: