Skip to content

Commit 8abc508

Browse files
jrngitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 509d597 commit 8abc508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ int http_error(const char *url, int ret)
903903
{
904904
/* http_request has already handled HTTP_START_FAILED. */
905905
if (ret != HTTP_START_FAILED)
906-
error("%s while accessing %s\n", curl_errorstr, url);
906+
error("%s while accessing %s", curl_errorstr, url);
907907

908908
return ret;
909909
}

0 commit comments

Comments
 (0)