Explorar el Código

Extend invalid protocol exception message

release/3.x.x
Christian Kratky hace 7 años
padre
commit
86dddd81c7
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. +1
    -2
      MQTTnet.Core/Serializer/DefaultMqttV311PacketSerializer.cs

+ 1
- 2
MQTTnet.Core/Serializer/DefaultMqttV311PacketSerializer.cs Ver fichero

@@ -1,7 +1,6 @@
using System;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using MQTTnet.Core.Channel;
using MQTTnet.Core.Exceptions;
@@ -201,7 +200,7 @@ namespace MQTTnet.Core.Serializer

default:
{
throw new MqttProtocolViolationException("Packet type not supported.");
throw new MqttProtocolViolationException($"Packet type ({(int)mqttPacketReader.ControlPacketType}) not supported.");
}
}
}


Cargando…
Cancelar
Guardar