Compare commits

...

2 Commits

Author SHA1 Message Date
Bernd Schoolmann
bb59756e79
Merge pull request #128 from SuperSandro2000/pinentry-error
Properly forward missing pinentry errors
2024-03-02 19:18:27 +01:00
Sandro Jäckel
fc5a1f79f6
Properly forward missing pinentry errors
Before running the following command without pinentry in PATH resulted
in: Login failed: Could not sync vault: decrypt: MAC mismatch

With this change the error is properly forwarded and displayed
$ ./goldwarden vault login --email me@example.com
Login failed: exec: "pinentry": executable file not found in $PATH
2024-03-02 17:11:17 +01:00

View File

@ -42,8 +42,7 @@ func GetPassword(title string, description string) (string, error) {
return externalPinentry.GetPassword(title, description)
}
// return "", errors.New("Not implemented")
return password, nil
return password, err
}
func GetApproval(title string, description string) (bool, error) {
@ -56,6 +55,5 @@ func GetApproval(title string, description string) (bool, error) {
return externalPinentry.GetApproval(title, description)
}
// return true, errors.New("Not implemented")
return approval, nil
return approval, err
}