Skip to content

Commit

Permalink
see what we are getting
Browse files Browse the repository at this point in the history
  • Loading branch information
mkleene committed Dec 20, 2024
1 parent 5dd8b05 commit 7dcb846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ocrypto/asym_decryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type AsymDecryption struct {
func NewAsymDecryption(privateKeyInPem string) (AsymDecryption, error) {
block, _ := pem.Decode([]byte(privateKeyInPem))
if block == nil {
return AsymDecryption{}, errors.New("failed to parse PEM formatted private key")
return AsymDecryption{}, fmt.Errorf("failed to parse PEM formatted private key: %s", privateKeyInPem)
}

priv, err := x509.ParsePKCS8PrivateKey(block.Bytes)
Expand Down

0 comments on commit 7dcb846

Please sign in to comment.