diff options
author | lloyd <[email protected]> | 2012-01-24 12:48:09 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-24 12:48:09 +0000 |
commit | 847b4b2e9756306517482568b36441103e146772 (patch) | |
tree | 51392f4119b4395db6e5c48329c55737271d405c /src | |
parent | 80a73e43b54aeebc1265d96c634c0d69ea256193 (diff) |
This should always have reported what it saw and expected
Diffstat (limited to 'src')
-rw-r--r-- | src/asn1/ber_dec.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/asn1/ber_dec.cpp b/src/asn1/ber_dec.cpp index faea4cb94..4d800d471 100644 --- a/src/asn1/ber_dec.cpp +++ b/src/asn1/ber_dec.cpp @@ -141,7 +141,11 @@ size_t find_eoc(DataSource* ber) void BER_Object::assert_is_a(ASN1_Tag type_tag, ASN1_Tag class_tag) { if(this->type_tag != type_tag || this->class_tag != class_tag) - throw BER_Decoding_Error("Tag mismatch when decoding"); + throw BER_Decoding_Error("Tag mismatch when decoding got " + + to_string(this->type_tag) + "/" + + to_string(this->class_tag) + " expected " + + to_string(type_tag) + "/" + + to_string(class_tag)); } /* |