Skip to content

Commit

Permalink
http-push: using error() and warning() as appropriate
Browse files Browse the repository at this point in the history
Change three occurences of using inconsistent error/warning reporting by
using the relevant error() / warning() calls to be consitent with the
rest of the code.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Miklos Vajna authored and Junio C Hamano committed Mar 24, 2009
1 parent 9140804 commit d5c87cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions http-push.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ static void finish_request(struct transfer_request *request)
}
} else {
if (request->http_code == 416)
fprintf(stderr, "Warning: requested range invalid; we may already have all the data.\n");
warning("requested range invalid; we may already have all the data.");

git_inflate_end(&request->stream);
git_SHA1_Final(request->real_sha1, &request->c);
Expand Down Expand Up @@ -1616,7 +1616,7 @@ static int locking_available(void)
}
XML_ParserFree(parser);
if (!lock_flags)
error("Error: no DAV locking support on %s",
error("no DAV locking support on %s",
remote->url);

} else {
Expand Down Expand Up @@ -2225,7 +2225,7 @@ int main(int argc, char **argv)
if (info_ref_lock)
remote->can_update_info_refs = 1;
else {
fprintf(stderr, "Error: cannot lock existing info/refs\n");
error("cannot lock existing info/refs");
rc = 1;
goto cleanup;
}
Expand Down

0 comments on commit d5c87cb

Please sign in to comment.