http: remove extra newline in error message
There is no need for a blank line between the detailed error message and the later "fatal: HTTP request failed" notice. Keep the newline written by error() itself and eliminate the extra one. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jonathan Nieder committed
Sep 5, 2011 at 17:29 UTC
8abc5082222b7f65e07453a0aca46ce6d25ce3a5
1 file changed
+1
-1
http.c
+1
-1
@@ -903,7 +903,7 @@ int http_error(const char *url, int ret)
903
{
904
/* http_request has already handled HTTP_START_FAILED. */
905
if (ret != HTTP_START_FAILED)
906
- error("%s while accessing %s\n", curl_errorstr, url);
906
+ error("%s while accessing %s", curl_errorstr, url);
907
908
return ret;
909
}