From 7eb7f540e25c1b525d709f01dee653671f5c2647 Mon Sep 17 00:00:00 2001 From: Arseny Smirnov Date: Tue, 13 Mar 2018 19:09:59 +0300 Subject: [PATCH] Add debug GitOrigin-RevId: 2ad27272b5896f1e3acc125cb7da64ef1d9f6b3b --- td/mtproto/HandshakeActor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/td/mtproto/HandshakeActor.cpp b/td/mtproto/HandshakeActor.cpp index 06ef5d721..6eb888cd7 100644 --- a/td/mtproto/HandshakeActor.cpp +++ b/td/mtproto/HandshakeActor.cpp @@ -56,6 +56,9 @@ void HandshakeActor::return_connection(Status status) { CHECK(!raw_connection_promise_); return; } + if (status.is_error()) { + status = Status::Error(status.code(), PSLICE() << status.message() << " : " << raw_connection->debug_str_); + } unsubscribe(raw_connection->get_pollable()); raw_connection->get_pollable().set_observer(nullptr); if (raw_connection_promise_) {