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:
parent
1437604836
commit
fd2f6523ec
1 changed files with 1 additions and 1 deletions
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue