Skip to content

Commit f1235eb

Browse files
PemReader: error message wording
1 parent 5938d2a commit f1235eb

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/main/java/com/rabbitmq/client/PemReader.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,7 @@ public static PrivateKey loadPrivateKey(String privateKey, Optional<String> keyP
218218
try {
219219
return KeyFactory.getInstance("DSA").generatePrivate(encodedKeySpec);
220220
} catch (InvalidKeySpecException e) {
221-
attemptedAlgorithms.add("DSA: " + e.getMessage());
222-
throw new KeyStoreException(
223-
"Failed to load private key with any supported algorithm. Attempts: "
224-
+ attemptedAlgorithms,
225-
e);
221+
throw new KeyStoreException("Failed to load private key with any supported algorithm", e);
226222
}
227223
}
228224

0 commit comments

Comments
 (0)