mirror of
https://github.com/octoleo/restic.git
synced 2024-11-25 06:07:44 +00:00
Fix: change error code in function isAccessDenied to AccessDenied
Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
This commit is contained in:
parent
7bdb985dde
commit
cc5325d22b
1
changelog/unreleased/issue-4085
Normal file
1
changelog/unreleased/issue-4085
Normal file
@ -0,0 +1 @@
|
||||
Fix error code in function isAccessDenied.
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user