mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
fix: avoid sending errors on missing objects on locked buckets (#10994)
make sure multi-object delete returned errors that are AWS S3 compatible
This commit is contained in:
@@ -255,7 +255,14 @@ func (e BucketNotEmpty) Error() string {
|
||||
return "Bucket not empty: " + e.Bucket
|
||||
}
|
||||
|
||||
// VersionNotFound object does not exist.
|
||||
// InvalidVersionID invalid version id
|
||||
type InvalidVersionID GenericError
|
||||
|
||||
func (e InvalidVersionID) Error() string {
|
||||
return "Invalid version id: " + e.Bucket + "/" + e.Object + "(" + e.VersionID + ")"
|
||||
}
|
||||
|
||||
// VersionNotFound version does not exist.
|
||||
type VersionNotFound GenericError
|
||||
|
||||
func (e VersionNotFound) Error() string {
|
||||
|
||||
Reference in New Issue
Block a user