client: handle connection failure
[fio.git] / client.c
index 4d44b1030961f4ded9d13a018d4f512b2d939edc..89c2b442ec9754b6f19c769ba6d3e8d716332bbc 100644 (file)
--- a/client.c
+++ b/client.c
@@ -111,6 +111,7 @@ static int fio_client_connect(struct fio_client *client)
 
        if (connect(fd, (struct sockaddr *) &client->addr, sizeof(client->addr)) < 0) {
                log_err("fio: connect: %s\n", strerror(errno));
+               log_err("fio: failed to connect to %s\n", client->hostname);
                return 1;
        }