git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1805
270642c3-0616-0410-b53a-bc976706d245
const
{
if (! check( 1 + senf::bytes(length_()) + length()) )
- throw InvalidMIHPacketException("truncated TLV.") << " Type: " << unsigned(type());
+ throw InvalidMIHPacketException("truncated TLV.") << " Type: " << unsigned(type())
+ << ", size:" << 1 + senf::bytes(length_()) + length()
+ << ", available: " << std::distance(i(), data().end());
if (type() != expectedType)
throw InvalidMIHPacketException("wrong TLV type. expected ") << unsigned(expectedType) << " got " << unsigned(type());
}