diff --git a/types/keypair/secp256k1/pem_parser.go b/types/keypair/secp256k1/pem_parser.go index cc848c1..878a1ca 100644 --- a/types/keypair/secp256k1/pem_parser.go +++ b/types/keypair/secp256k1/pem_parser.go @@ -75,7 +75,7 @@ func PemToPrivateKey(content []byte) (*secp256k1.PrivateKey, error) { var privKey ecPrivateKey if _, err := asn1.Unmarshal(block.Bytes, &privKey); err != nil { - return nil, fmt.Errorf("x509: failed to parse EC private key: " + err.Error()) + return nil, fmt.Errorf("x509: failed to parse EC private key: %s", err.Error()) } if privKey.Version != 1 { return nil, fmt.Errorf("x509: unknown EC private key version %d", privKey.Version)