mirror of
https://github.com/docker/docker-credential-helpers.git
synced 2026-06-13 16:01:28 +05:30
pass: changed error message returned, if password-store is not initialized
Signed-off-by: eyjhbb@gmail.com <eyjhbb@gmail.com>
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ func (p Pass) checkInitialized() error {
|
|||||||
// We just run a `pass ls`, if it fails then pass is not initialized.
|
// We just run a `pass ls`, if it fails then pass is not initialized.
|
||||||
_, err := p.runPassHelper("", "ls")
|
_, err := p.runPassHelper("", "ls")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("error initializing pass: %v", err)
|
return fmt.Errorf("pass not initialized: %v", err)
|
||||||
}
|
}
|
||||||
passInitialized = true
|
passInitialized = true
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user