1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-27 13:28:00 +01:00

Clarify nesting depth exceeded error message

This commit is contained in:
Paul Schaub 2021-12-14 13:14:56 +01:00
parent f8968fc075
commit bff2b3fbfe
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -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) {