summaryrefslogtreecommitdiff
path: root/src/netops.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/netops.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/netops.c')
-rw-r--r--src/netops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/netops.c b/src/netops.c
index 90326ea59..4b73baa0e 100644
--- a/src/netops.c
+++ b/src/netops.c
@@ -144,7 +144,7 @@ int gitno_connection_data_from_url(
default_port = "80";
if (data->use_ssl) {
- giterr_set(GITERR_NET, "Redirect from HTTPS to HTTP is not allowed");
+ giterr_set(GITERR_NET, "redirect from HTTPS to HTTP is not allowed");
goto cleanup;
}
} else if (!git__prefixcmp(url, prefix_https)) {
@@ -155,7 +155,7 @@ int gitno_connection_data_from_url(
default_port = data->use_ssl ? "443" : "80";
if (!default_port) {
- giterr_set(GITERR_NET, "Unrecognized URL prefix");
+ giterr_set(GITERR_NET, "unrecognized URL prefix");
goto cleanup;
}
@@ -187,7 +187,7 @@ int gitno_connection_data_from_url(
/* Check for errors in the resulting data */
if (original_host && url[0] != '/' && strcmp(original_host, data->host)) {
- giterr_set(GITERR_NET, "Cross host redirect not allowed");
+ giterr_set(GITERR_NET, "cross host redirect not allowed");
error = -1;
}
}
@@ -237,7 +237,7 @@ int gitno_extract_url_parts(
const char *_host, *_port, *_path, *_userinfo;
if (http_parser_parse_url(url, strlen(url), false, &u)) {
- giterr_set(GITERR_NET, "Malformed URL '%s'", url);
+ giterr_set(GITERR_NET, "malformed URL '%s'", url);
return GIT_EINVALIDSPEC;
}