remote-curl: consistently report repo url for http errors
[gitweb.git] / remote-curl.c
index 5d9f9618b46b72c4841791a5bba42e69fe0dffa5..6c6714b00a13c9d3393493be6bfad3c131875c24 100644 (file)
@@ -213,10 +213,10 @@ static struct discovery* discover_refs(const char *service, int for_push)
                die("repository '%s' not found", url);
        case HTTP_NOAUTH:
                show_http_message(&type, &buffer);
-               die("Authentication failed");
+               die("Authentication failed for '%s'", url);
        default:
                show_http_message(&type, &buffer);
-               http_error(refs_url, http_ret);
+               http_error(url, http_ret);
                die("HTTP request failed");
        }