Commit af901f28 authored by Brickner_cp's avatar Brickner_cp

Add packet length to the error message when failing writing packet to a device in SendPacket().

parent df6b8094
......@@ -243,7 +243,7 @@ void PacketCommunicator::SendPacket(Packet^ packet)
return;
pin_ptr<Byte> unamangedPacketBytes = &packet->Buffer[0];
if (pcap_sendpacket(_pcapDescriptor, unamangedPacketBytes, packet->Length) != 0)
throw BuildInvalidOperation("Failed writing to device");
throw BuildInvalidOperation("Failed writing to device. Packet length: " + packet->Length);
}
BerkeleyPacketFilter^ PacketCommunicator::CreateFilter(String^ filterValue)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment