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

pass: return an error when a cred doesn't exist

fixes https://github.com/docker/docker-credential-helpers/issues/174

Signed-off-by: Nick Santos <nick.santos@docker.com>
This commit is contained in:
Nick Santos
2022-07-27 09:23:46 -04:00
parent e595cd6946
commit 2fc2313bb1
2 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -138,7 +138,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