diff --git a/pgpainless-core/src/main/java/org/pgpainless/decryption_verification/DecryptionStreamFactory.java b/pgpainless-core/src/main/java/org/pgpainless/decryption_verification/DecryptionStreamFactory.java index df2f5172..8bd10b5d 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/decryption_verification/DecryptionStreamFactory.java +++ b/pgpainless-core/src/main/java/org/pgpainless/decryption_verification/DecryptionStreamFactory.java @@ -190,7 +190,7 @@ public final class DecryptionStreamFactory { private InputStream processPGPPackets(@Nonnull PGPObjectFactory objectFactory, int depth) throws IOException, PGPException { if (depth >= MAX_PACKET_NESTING_DEPTH) { - throw new PGPException("Maximum recursion depth of packages exceeded."); + throw new PGPException("Maximum depth of nested packages exceeded."); } Object nextPgpObject; while ((nextPgpObject = objectFactory.nextObject()) != null) {