1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-30 00:02:06 +01: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 1437604836
commit fd2f6523ec

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.");
}
}