From: Junio C Hamano Date: Tue, 13 Feb 2018 21:39:14 +0000 (-0800) Subject: Merge branch 'po/http-push-error-message' X-Git-Tag: v2.17.0-rc0~112 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/39a1dd80f8e9542603904bdf2e62d140a88c7e38?hp=0c13c4f19dfee3f1704bfca5af5e7eca14203a1c Merge branch 'po/http-push-error-message' Debugging aid. * po/http-push-error-message: http-push: improve error log --- diff --git a/http-push.c b/http-push.c index 14435ab65d..0913f8ab86 100644 --- a/http-push.c +++ b/http-push.c @@ -915,6 +915,10 @@ static struct remote_lock *lock_remote(const char *path, long timeout) lock->timeout = -1; } XML_ParserFree(parser); + } else { + fprintf(stderr, + "error: curl result=%d, HTTP code=%ld\n", + results.curl_result, results.http_code); } } else { fprintf(stderr, "Unable to start LOCK request\n");