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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user