From 30ab2eb9d753bd8070df6e085037100a450306e2 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 8 Feb 2019 03:17:24 -0800 Subject: [PATCH] modules/console: Use pretty output for refs cmd. --- modules/console.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/console.cc b/modules/console.cc index 2548a7bbf..f2d407193 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -5841,6 +5841,14 @@ console_cmd__event__refs(opt &out, const string_view &line) refs.for_each([&out](const m::event::idx &idx) { + const m::event::fetch event + { + idx, std::nothrow + }; + + if(!event.valid) + return true; + out << idx << " " << m::event_id(idx) << std::endl;