X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2F80221Bundle%2FTLVParser.cc;h=7474b0b69a95e2fcb672ee7b430ff83cda73b402;hb=90692e78469c816d222d235bbcc041750dcbdccb;hp=d677de866c463ffc267b5b03582a448def7082be;hpb=ddb2132be4265f8a0d7d4c954c7c9401e59d027c;p=senf.git diff --git a/senf/Packets/80221Bundle/TLVParser.cc b/senf/Packets/80221Bundle/TLVParser.cc index d677de8..7474b0b 100644 --- a/senf/Packets/80221Bundle/TLVParser.cc +++ b/senf/Packets/80221Bundle/TLVParser.cc @@ -63,7 +63,8 @@ prefix_ void senf::MIHBaseTLVParser::validateTypeLength(boost::uint8_t expectedT { validateType( expectedType); if (length() != expectedLength) - throw InvalidMIHPacketException("invalid length in TLV.") << " Type: " << unsigned(type()); + throw InvalidMIHPacketException("invalid length in TLV.") << " Type: " << unsigned(type()) + << ", expected length: " << expectedLength << " got " << length(); } //-/////////////////////////////////////////////////////////////////////////////////////////////////