Skip to content

Commit

Permalink
Merge pull request #128 from SuperSandro2000/pinentry-error
Browse files Browse the repository at this point in the history
Properly forward missing pinentry errors
  • Loading branch information
quexten committed Mar 2, 2024
2 parents ce6cb05 + fc5a1f7 commit bb59756
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions agent/systemauth/pinentry/pinentry.go
Expand Up @@ -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) {
Expand All @@ -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
}

0 comments on commit bb59756

Please sign in to comment.