summaryrefslogtreecommitdiff
path: root/src/socket_stream.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlosmn@github.com>2017-01-13 17:05:58 +0100
committerGitHub <noreply@github.com>2017-01-13 17:05:58 +0100
commita6d833a29e100cae66d5144367e9102d093d4dbd (patch)
treee57dce696483b3c166535e75aefe0feedad6b0d8 /src/socket_stream.c
parentffe259d9e52a472b172d9834ed44a98fd1ce4d1a (diff)
parent8f0d5cdef9e2cb53c2f455d0a449f25c87647811 (diff)
downloadlibgit2-a6d833a29e100cae66d5144367e9102d093d4dbd.tar.gz
Merge pull request #4049 from libgit2/ethomson/error_msgs
giterr_set: consistent error messages
Diffstat (limited to 'src/socket_stream.c')
-rw-r--r--src/socket_stream.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/socket_stream.c b/src/socket_stream.c
index 71f49118e..fca411717 100644
--- a/src/socket_stream.c
+++ b/src/socket_stream.c
@@ -57,7 +57,7 @@ static int close_socket(GIT_SOCKET s)
return -1;
if (0 != WSACleanup()) {
- giterr_set(GITERR_OS, "Winsock cleanup failed");
+ giterr_set(GITERR_OS, "winsock cleanup failed");
return -1;
}
@@ -82,13 +82,13 @@ int socket_connect(git_stream *stream)
WSADATA wsd;
if (WSAStartup(MAKEWORD(2,2), &wsd) != 0) {
- giterr_set(GITERR_OS, "Winsock init failed");
+ giterr_set(GITERR_OS, "winsock init failed");
return -1;
}
if (LOBYTE(wsd.wVersion) != 2 || HIBYTE(wsd.wVersion) != 2) {
WSACleanup();
- giterr_set(GITERR_OS, "Winsock init failed");
+ giterr_set(GITERR_OS, "winsock init failed");
return -1;
}
#endif
@@ -99,7 +99,7 @@ int socket_connect(git_stream *stream)
if ((ret = p_getaddrinfo(st->host, st->port, &hints, &info)) != 0) {
giterr_set(GITERR_NET,
- "Failed to resolve address for %s: %s", st->host, p_gai_strerror(ret));
+ "failed to resolve address for %s: %s", st->host, p_gai_strerror(ret));
return -1;
}
@@ -121,7 +121,7 @@ int socket_connect(git_stream *stream)
/* Oops, we couldn't connect to any address */
if (s == INVALID_SOCKET && p == NULL) {
- giterr_set(GITERR_OS, "Failed to connect to %s", st->host);
+ giterr_set(GITERR_OS, "failed to connect to %s", st->host);
p_freeaddrinfo(info);
return -1;
}