repositories
/
deb_libnfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e9d7dd
)
Improve an error message to show the errno value
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Mon, 2 Jan 2012 20:18:56 +0000
(07:18 +1100)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Mon, 2 Jan 2012 20:18:56 +0000
(07:18 +1100)
lib/socket.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/socket.c
b/lib/socket.c
index 0f12697388779cd3f819bcf39c22227c0ddf225d..23c3f1028af169383a454ce8483e951e058af304 100644
(file)
--- a/
lib/socket.c
+++ b/
lib/socket.c
@@
-411,7
+411,7
@@
static int rpc_connect_sockaddr_async(struct rpc_context *rpc, struct sockaddr_s
if (connect(rpc->fd, (struct sockaddr *)s, socksize) != 0 && errno != EINPROGRESS)
#endif
{
-
rpc_set_error(rpc, "connect() to server failed"
);
+
rpc_set_error(rpc, "connect() to server failed. %s(%d)", strerror(errno), errno
);
return -1;
}