]> git.ipfire.org Git - thirdparty/git.git/blobdiff - http-push.c
http-push: improve error log
[thirdparty/git.git] / http-push.c
index 14435ab65d1bbe3fc73be6a6d774b6ab6ffc8360..0913f8ab860246f990536fd20794ac6230daf50a 100644 (file)
@@ -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");