Clarify nesting depth exceeded error message
This commit is contained in:
parent
f8968fc075
commit
bff2b3fbfe
|
@ -190,7 +190,7 @@ public final class DecryptionStreamFactory {
|
||||||
|
|
||||||
private InputStream processPGPPackets(@Nonnull PGPObjectFactory objectFactory, int depth) throws IOException, PGPException {
|
private InputStream processPGPPackets(@Nonnull PGPObjectFactory objectFactory, int depth) throws IOException, PGPException {
|
||||||
if (depth >= MAX_PACKET_NESTING_DEPTH) {
|
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;
|
Object nextPgpObject;
|
||||||
while ((nextPgpObject = objectFactory.nextObject()) != null) {
|
while ((nextPgpObject = objectFactory.nextObject()) != null) {
|
||||||
|
|
Loading…
Reference in New Issue