Skip to content

Commit

Permalink
Rectify Unit Tests Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Dakshit Babbar committed Sep 11, 2024
1 parent 1e2cd7a commit 19fd967
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/core_mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ static MQTTStatus_t receiveConnack( MQTTContext_t * pContext,
* @return #MQTTSendFailed if transport send during resend failed;
* #MQTTSuccess otherwise.
*/
static MQTTStatus_t handleUncleanSessionResumption( MQTTContext_t * pContext)
static MQTTStatus_t handleUncleanSessionResumption( MQTTContext_t * pContext);

/**
* @brief Send the publish packet without copying the topic string and payload in
Expand Down Expand Up @@ -2879,6 +2879,11 @@ MQTTStatus_t MQTT_Connect( MQTTContext_t * pContext,
LogInfo( ( "MQTT Connection is either already established or a disconnect is pending, return status = %s.",
MQTT_Status_strerror( status ) ) );
}
else if ( status == MQTTBadParameter )
{
LogError( ( "MQTT connection failed with status = %s.",
MQTT_Status_strerror( status ) ) );
}
else
{
LogError( ( "MQTT connection failed with status = %s.",
Expand Down

0 comments on commit 19fd967

Please sign in to comment.