mirror of
https://github.com/restic/restic.git
synced 2025-10-11 03:12:38 +00:00
Merge pull request #3798 from greatroar/errors
all: Move away from pkg/errors, easy cases
This commit is contained in:
@@ -154,7 +154,7 @@ func SearchKey(ctx context.Context, s *Repository, password string, maxKeys int,
|
||||
debug.Log("key %v returned error %v", fi.Name, err)
|
||||
|
||||
// ErrUnauthenticated means the password is wrong, try the next key
|
||||
if errors.Cause(err) == crypto.ErrUnauthenticated {
|
||||
if errors.Is(err, crypto.ErrUnauthenticated) {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user