From 6dcc7e29df3bef708b8e0816425b2e9ad8824525 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 9 Apr 2018 11:48:20 -0700 Subject: [PATCH] ircd::fmt: Leave useful note for assertion. --- ircd/fmt.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ircd/fmt.cc b/ircd/fmt.cc index 14ce9342b..1f1eb6c58 100644 --- a/ircd/fmt.cc +++ b/ircd/fmt.cc @@ -274,7 +274,8 @@ try auto it(begin(v)); for(size_t i(0); i < v.size(); ++it, i++) { - assert(!finished()); + assert(!finished()); // You passed too many arguments for your format string + const auto &ptr(get<0>(*it)); const auto &type(get<1>(*it)); argument(std::make_tuple(ptr, std::type_index(*type)));