Fix error message when we find something unexpected in a SEQUENCE.
git-svn-id: svn://10.0.0.236/trunk@130555 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d59bc1b4f8
commit
e852f3706d
@ -377,9 +377,14 @@ public static class Template implements ASN1Template {
|
||||
// use the default
|
||||
seq.addElement( e.getDefault() );
|
||||
} else {
|
||||
String tagDesc;
|
||||
if( lookAhead == null ) {
|
||||
tagDesc = "(null)";
|
||||
} else {
|
||||
tagDesc = lookAhead.getTag().toString();
|
||||
}
|
||||
throw new InvalidBERException("Missing item #" + index +
|
||||
": expecting " + lookAhead.getTag() + ", found"
|
||||
+ e.getImplicitTag() );
|
||||
": found " + lookAhead.getTag() );
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user