provide more information when error occurs

This commit is contained in:
zhangzifa
2019-02-26 17:25:39 +08:00
committed by Jackson Tian
parent f877a9ef39
commit 33a44c856d
9 changed files with 163 additions and 24 deletions

View File

@@ -144,7 +144,9 @@ CurlHttpClient::makeRequest(const HttpRequest &request) {
"A problem occurred somewhere in the SSL/TLS handshake."));
default:
return HttpResponseOutcome(
Error("NetworkError", "Failed to connect to host or proxy."));
Error("NetworkError",
"Failed to connect to host or proxy: " +
HttpMethodToString(request.method()) + " " + request.url().toString()));
}
}