Merge pull request #2307 from gary-kim/fix-2306-password-retries

Allow multiple retries for interactive password input
This commit is contained in:
rawtaz
2019-11-20 18:30:20 +01:00
committed by GitHub
3 changed files with 32 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ import (
var (
// ErrNoKeyFound is returned when no key for the repository could be decrypted.
ErrNoKeyFound = errors.Fatal("wrong password or no key found")
ErrNoKeyFound = errors.New("wrong password or no key found")
// ErrMaxKeysReached is returned when the maximum number of keys was checked and no key could be found.
ErrMaxKeysReached = errors.Fatal("maximum number of keys reached")