Use mosquitto_strerror() instead of displaying the rc.
This commit is contained in:
parent
4c147309a4
commit
6f88ba3225
@ -760,7 +760,7 @@ int client_connect(struct mosquitto *mosq, struct mosq_config *cfg)
|
||||
#endif
|
||||
fprintf(stderr, "Error: %s\n", err);
|
||||
}else{
|
||||
fprintf(stderr, "Unable to connect (%d).\n", rc);
|
||||
fprintf(stderr, "Unable to connect (%s).\n", mosquitto_strerror(rc));
|
||||
}
|
||||
}
|
||||
mosquitto_lib_cleanup();
|
||||
|
Loading…
Reference in New Issue
Block a user