{
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();
}
//-/////////////////////////////////////////////////////////////////////////////////////////////////