http: re-word http error message
[gitweb.git] / http.c
diff --git a/http.c b/http.c
index 5e6f67d0049f2dd18f8e861cf3949e9f8b4a30b6..64068a2fc7248d377401d31e5d8aa1ecd82fcbd9 100644 (file)
--- a/http.c
+++ b/http.c
@@ -943,7 +943,7 @@ static int http_get_file(const char *url, const char *filename, int options)
 
 void http_error(const char *url)
 {
-       error("%s while accessing %s", curl_errorstr, url);
+       error("unable to access '%s': %s", url, curl_errorstr);
 }
 
 int http_fetch_ref(const char *base, struct ref *ref)