diff --git a/Source/MQTTnet/Adapter/MqttConnectingFailedException.cs b/Source/MQTTnet/Adapter/MqttConnectingFailedException.cs index 158cc9a..9a14999 100644 --- a/Source/MQTTnet/Adapter/MqttConnectingFailedException.cs +++ b/Source/MQTTnet/Adapter/MqttConnectingFailedException.cs @@ -6,7 +6,7 @@ namespace MQTTnet.Adapter public class MqttConnectingFailedException : MqttCommunicationException { public MqttConnectingFailedException(MqttClientAuthenticateResult resultCode) - : base($"Connecting with MQTT server failed ({resultCode.ToString()}).") + : base($"Connecting with MQTT server failed ({resultCode.ResultCode.ToString()}).") { Result = resultCode; }