1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-15 21:29:38 +02:00

More specific exception message for when nesting depth is exceeded

This commit is contained in:
Paul Schaub 2022-11-16 17:36:51 +01:00
parent 34d6b581ac
commit 3033f5dfd0
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -399,7 +399,7 @@ public class MessageMetadata {
public Layer(int depth) {
this.depth = depth;
if (depth > MAX_LAYER_DEPTH) {
throw new MalformedOpenPgpMessageException("Maximum nesting depth exceeded.");
throw new MalformedOpenPgpMessageException("Maximum packet nesting depth (" + MAX_LAYER_DEPTH + ") exceeded.");
}
}