DcOptionsSet: debug

GitOrigin-RevId: c6836c1c0c5a9755d47809931a2505346ab7e885
This commit is contained in:
Arseny Smirnov 2018-02-27 12:38:49 +03:00
parent 44aad96473
commit 751029d45d

View File

@ -97,7 +97,8 @@ Result<DcOptionsSet::ConnectionInfo> DcOptionsSet::find_connection(DcId dc_id, b
}
if (options.empty()) {
return Status::Error("No such connection");
return Status::Error(PSLICE() << "No such connection: " << tag("dc_id", dc_id)
<< tag("allow_media_only", allow_media_only) << tag("use_static", use_static));
}
auto last_error_at = std::min_element(options.begin(), options.end(),