mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Fix error message when we find something unexpected in a SEQUENCE.
This commit is contained in:
parent
f5eae8deb7
commit
65af04c0b9
@ -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…
Reference in New Issue
Block a user