diff --git a/ctdb/client/ctdb_client.c b/ctdb/client/ctdb_client.c index c67eb2c1de1..1661d2ae178 100644 --- a/ctdb/client/ctdb_client.c +++ b/ctdb/client/ctdb_client.c @@ -289,9 +289,12 @@ int ctdb_socket_connect(struct ctdb_context *ctdb) } if (connect(ctdb->daemon.sd, (struct sockaddr *)&addr, sizeof(addr)) == -1) { + DEBUG(DEBUG_ERR, + (__location__ + "Failed to connect client socket to daemon (%s)\n", + strerror(errno))); close(ctdb->daemon.sd); ctdb->daemon.sd = -1; - DEBUG(DEBUG_ERR,(__location__ " Failed to connect client socket to daemon. Errno:%s(%d)\n", strerror(errno), errno)); return -1; }