mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 01:33:03 +08:00
Refactor exception message.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user