Fix: change error code in function isAccessDenied to AccessDenied

Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
This commit is contained in:
Xun Jiang 2022-12-13 14:51:44 +08:00 committed by Michael Eischer
parent 7bdb985dde
commit cc5325d22b
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Fix error code in function isAccessDenied.

View File

@ -164,7 +164,7 @@ func isAccessDenied(err error) bool {
debug.Log("isAccessDenied(%T, %#v)", err, err)
var e minio.ErrorResponse
return errors.As(err, &e) && e.Code == "Access Denied"
return errors.As(err, &e) && e.Code == "AccessDenied"
}
// IsNotExist returns true if the error is caused by a not existing file.