Skip to content

Commit

Permalink
TransIP: fix exception when logging private key error
Browse files Browse the repository at this point in the history
  • Loading branch information
webprofusion-chrisc committed Aug 12, 2024
1 parent 7d33db7 commit b3d820e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private static ICipherParameters GetCipherParameters(object pem)
case AsymmetricCipherKeyPair keyPair:
return keyPair.Private;
default:
throw new NotImplementedException($"Error getting cipher parameters. '{pem.GetType()}' is not supported.");
throw new NotImplementedException($"Error getting cipher parameters. '{(pem?.GetType())}' is not supported. Check key is a valid PEM format private key.");
}
}

Expand Down

0 comments on commit b3d820e

Please sign in to comment.