s3: Put bucket tagging to return an error when bucket is not found (#13232)

instead of creating new metadata in .minio.sys directory
This commit is contained in:
Anis Elleuch
2021-09-17 16:32:32 +01:00
committed by GitHub
parent d80826b05d
commit 91567ba916
2 changed files with 6 additions and 1 deletions

View File

@@ -1796,6 +1796,8 @@ func toAPIErrorCode(ctx context.Context, err error) (apiErr APIErrorCode) {
}
switch err {
case errVolumeNotFound:
apiErr = ErrNoSuchBucket
case errInvalidArgument:
apiErr = ErrAdminInvalidArgument
case errNoSuchUser: