1
0
mirror of https://github.com/docker/docker-credential-helpers.git synced 2026-06-13 16:01:28 +05:30

Merge pull request #221 from nicks/nicks/pass

pass: return an error when a cred doesn't exist
This commit is contained in:
Sebastiaan van Stijn
2022-08-28 21:33:45 +02:00
committed by GitHub
2 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ func (p Pass) Get(serverURL string) (string, string, error) {
if _, err := os.Stat(path.Join(getPassDir(), PASS_FOLDER, encoded)); err != nil {
if os.IsNotExist(err) {
return "", "", nil
return "", "", credentials.NewErrCredentialsNotFound()
}
return "", "", err