diff options
-rw-r--r-- | test/client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/client.c b/test/client.c index a7a5eb190..5ae273782 100644 --- a/test/client.c +++ b/test/client.c @@ -148,9 +148,10 @@ int main(int argc, char *argv[]) fprintf(stdout, "\tClient: Trying to send data over socket......."); length = STRLEN; - if (apr_send(sock, datasend, &length) != APR_SUCCESS) { + if ((stat = apr_send(sock, datasend, &length) != APR_SUCCESS)) { apr_socket_close(sock); - fprintf(stderr, "Problem sending data\n"); + fprintf(stderr, "Problem sending data: %s (%d)\n", + apr_strerror(stat, msgbuf, sizeof(msgbuf)), stat); exit(-1); } fprintf(stdout, "OK\n"); |