瀏覽代碼

Extend invalid protocol exception message

release/3.x.x
Christian Kratky 7 年之前
父節點
當前提交
86dddd81c7
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. +1
    -2
      MQTTnet.Core/Serializer/DefaultMqttV311PacketSerializer.cs

+ 1
- 2
MQTTnet.Core/Serializer/DefaultMqttV311PacketSerializer.cs 查看文件

@@ -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.");
}
}
}


Loading…
取消
儲存