summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-02-13 13:39:14 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-02-13 13:39:14 -0800
commit39a1dd80f8e9542603904bdf2e62d140a88c7e38 (patch)
tree911510f2058e17b595dbae5d984fea9dc72450cc
parentMerge branch 'po/clang-format-functype-weight' (diff)
parenthttp-push: improve error log (diff)
downloadtgif-39a1dd80f8e9542603904bdf2e62d140a88c7e38.tar.xz
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");