diff options
| author | levlam <levlam@telegram.org> | 2018-12-07 12:25:22 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2018-12-07 12:25:22 +0300 |
| commit | ccf77c5e01841956fbca97da1ca9fa23e8617077 (patch) | |
| tree | ad700c57454ab84c546e7959f044d95a7b94984f /tdnet/td/net/HttpProxy.cpp | |
| parent | 7072b0319d85c2583dd3d3ab8b3e0a1fb83c15e6 (diff) | |
Better error messages while connecting to proxy.
GitOrigin-RevId: 25937285e2f3ee499f3335081f377ba584dcf068
Diffstat (limited to 'tdnet/td/net/HttpProxy.cpp')
| -rw-r--r-- | tdnet/td/net/HttpProxy.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tdnet/td/net/HttpProxy.cpp b/tdnet/td/net/HttpProxy.cpp index 318fb5937..ddb65c300 100644 --- a/tdnet/td/net/HttpProxy.cpp +++ b/tdnet/td/net/HttpProxy.cpp @@ -46,7 +46,8 @@ Status HttpProxy::wait_connect_response() { size_t len = min(sizeof(buf), it.size()); it.advance(len, MutableSlice{buf, sizeof(buf)}); VLOG(proxy) << "Failed to connect: " << format::escaped(Slice(buf, len)); - return Status::Error("Failed to connect"); + return Status::Error(PSLICE() << "Failed to connect to " << ip_address_.get_ip_str() << ':' + << ip_address_.get_port()); } size_t total_size = 12; |
