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; diff --git a/tdnet/td/net/TransparentProxy.cpp b/tdnet/td/net/TransparentProxy.cpp index 757774a4a..16cd99237 100644 --- a/tdnet/td/net/TransparentProxy.cpp +++ b/tdnet/td/net/TransparentProxy.cpp @@ -76,7 +76,7 @@ void TransparentProxy::loop() { } void TransparentProxy::timeout_expired() { - on_error(Status::Error("Timeout expired")); + on_error(Status::Error("Connection timeout expired")); } } // namespace td