forked from TrueCloudLab/restic
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
2 changed files with 2 additions and 1 deletions
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 a new issue