Refactor exception message.

This commit is contained in:
Christian Kratky
2020-07-25 13:43:26 +02:00
parent e63f26789f
commit a65c015a58
2 changed files with 2 additions and 2 deletions
@@ -125,7 +125,7 @@ namespace MQTTnet.Formatter
// 2 byte protocol name length
// at least 4 byte protocol name
// 1 byte protocol level
throw new MqttProtocolViolationException("Mqtt Connect packet must have at least 7 bytes");
throw new MqttProtocolViolationException("CONNECT packet must have at least 7 bytes.");
}
var protocolName = receivedMqttPacket.Body.ReadStringWithLengthPrefix();