mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
fix: return proper errors Get/HeadObject for deleteMarkers (#9957)
This commit is contained in:
@@ -519,6 +519,12 @@ func isErrObjectNotFound(err error) bool {
|
||||
return errors.As(err, &objNotFound)
|
||||
}
|
||||
|
||||
// isErrVersionNotFound - Check if error type is VersionNotFound.
|
||||
func isErrVersionNotFound(err error) bool {
|
||||
var versionNotFound VersionNotFound
|
||||
return errors.As(err, &versionNotFound)
|
||||
}
|
||||
|
||||
// PreConditionFailed - Check if copy precondition failed
|
||||
type PreConditionFailed struct{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user