mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-16 09:22:05 +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) {
|
public Layer(int depth) {
|
||||||
this.depth = depth;
|
this.depth = depth;
|
||||||
if (depth > MAX_LAYER_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