1
0
Fork 0
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:
Jörg Thalheim 2020-07-30 16:22:43 +01:00
parent df86cc4e71
commit 32c42617e4
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -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