summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-02-13 13:39:14 -0800
committerJunio C Hamano <gitster@pobox.com>2018-02-13 13:39:14 -0800
commit39a1dd80f8e9542603904bdf2e62d140a88c7e38 (patch)
tree911510f2058e17b595dbae5d984fea9dc72450cc
parent0c13c4f19dfee3f1704bfca5af5e7eca14203a1c (diff)
parenta2b9820ceccf2065a3d3d347e9b1cf7834f5e146 (diff)
downloadgit-39a1dd80f8e9542603904bdf2e62d140a88c7e38.tar.gz
Merge branch 'po/http-push-error-message'
Debugging aid. * po/http-push-error-message: http-push: improve error log
-rw-r--r--http-push.c4
1 files changed, 4 insertions, 0 deletions
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");