remove superfluous newlines in error messages
The error handling routines add a newline. Remove the duplicate ones in error messages. Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
9768cafe68
commit
82247e9bd5
@ -1108,7 +1108,7 @@ static void handle_remote_ls_ctx(struct xml_ctx *ctx, int tag_closed)
|
||||
if (repo->path)
|
||||
url = repo->path;
|
||||
if (strncmp(path, url, repo->path_len))
|
||||
error("Parsed path '%s' does not match url: '%s'\n",
|
||||
error("Parsed path '%s' does not match url: '%s'",
|
||||
path, url);
|
||||
else {
|
||||
path += repo->path_len;
|
||||
@ -1702,7 +1702,7 @@ static int delete_remote_branch(const char *pattern, int force)
|
||||
run_active_slot(slot);
|
||||
free(url);
|
||||
if (results.curl_result != CURLE_OK)
|
||||
return error("DELETE request failed (%d/%ld)\n",
|
||||
return error("DELETE request failed (%d/%ld)",
|
||||
results.curl_result, results.http_code);
|
||||
} else {
|
||||
free(url);
|
||||
|
||||
Reference in New Issue
Block a user