0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-28 11:48:54 +02:00

modules/console: Improve event horizon result detail.

This commit is contained in:
Jason Volk 2020-11-07 02:07:04 -08:00
parent a4da3a2b83
commit 3ae9f7cb82

View file

@ -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;
});