mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
http-push: improve error log
When git push fails due to server-side WebDAV error, it's not easy to point to the main culprit. Additional information about exact cURL error and HTTP server response is helpful for debugging purpose. New error log helped me pinpoint failing test t5540-http-push-webdav to a missing Apache dependency in Fedora 27: https://bugzilla.redhat.com/show_bug.cgi?id=1491151 Signed-off-by: Patryk Obara <patryk.obara@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
8279ed033f
commit
a2b9820cec
|
@ -915,6 +915,10 @@ static struct remote_lock *lock_remote(const char *path, long timeout)
|
||||||
lock->timeout = -1;
|
lock->timeout = -1;
|
||||||
}
|
}
|
||||||
XML_ParserFree(parser);
|
XML_ParserFree(parser);
|
||||||
|
} else {
|
||||||
|
fprintf(stderr,
|
||||||
|
"error: curl result=%d, HTTP code=%ld\n",
|
||||||
|
results.curl_result, results.http_code);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "Unable to start LOCK request\n");
|
fprintf(stderr, "Unable to start LOCK request\n");
|
||||||
|
|
Loading…
Reference in a new issue