mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-18 02:12:06 +01:00
More precise error message for malformed message
This commit is contained in:
parent
25190fc5df
commit
b495e602e5
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ public class PDA {
|
|||
inputs.add(input);
|
||||
} catch (MalformedOpenPgpMessageException e) {
|
||||
MalformedOpenPgpMessageException wrapped = new MalformedOpenPgpMessageException(
|
||||
"Malformed message: After reading stream " + Arrays.toString(inputs.toArray()) +
|
||||
"Malformed message: After reading packet sequence " + Arrays.toString(inputs.toArray()) +
|
||||
", token '" + input + "' is not allowed." +
|
||||
"\nNo transition from state '" + state + "' with stack " + Arrays.toString(stack.toArray()) +
|
||||
(stackSymbol != null ? "||'" + stackSymbol + "'." : "."), e);
|
||||
|
|
Loading…
Reference in a new issue