mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-03-14 12:48:57 +00:00
sshkeys: use %w in fmt.Errorf calls
This commit is contained in:
parent
df86cc4e71
commit
32c42617e4
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ func parsePrivateKey(sshPrivateKey []byte) (*rsa.PrivateKey, error) {
|
|||
func SSHPrivateKeyToPGP(sshPrivateKey []byte) (*openpgp.Entity, error) {
|
||||
key, err := parsePrivateKey(sshPrivateKey)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to parse private ssh key: %s", err)
|
||||
return nil, fmt.Errorf("failed to parse private ssh key: %w", err)
|
||||
}
|
||||
|
||||
// Let's make keys reproducible
|
||||
|
|
Loading…
Add table
Reference in a new issue