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
1 changed files with 1 additions and 1 deletions

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