mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 08:12:37 +01:00
modules/console: Improve event horizon result detail.
This commit is contained in:
parent
a4da3a2b83
commit
3ae9f7cb82
1 changed files with 13 additions and 8 deletions
|
@ -8096,18 +8096,23 @@ console_cmd__event__horizon(opt &out, const string_view &line)
|
|||
horizon.for_each([&out, &event_id]
|
||||
(const auto &, const auto &event_idx)
|
||||
{
|
||||
const auto _event_id
|
||||
const m::event::fetch event
|
||||
{
|
||||
m::event_id(std::nothrow, event_idx)
|
||||
std::nothrow, event_idx
|
||||
};
|
||||
|
||||
out << event_id
|
||||
<< " -> "
|
||||
<< event_idx
|
||||
<< " "
|
||||
<< _event_id
|
||||
<< std::endl;
|
||||
out
|
||||
<< event.event_id
|
||||
<< " -> "
|
||||
<< event_idx
|
||||
<< " ";
|
||||
|
||||
if(event.valid)
|
||||
out << pretty_oneline(event);
|
||||
else
|
||||
out << "Not Found.";
|
||||
|
||||
out << std::endl;
|
||||
return true;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue