From 3f69af3aafae991d313e83129860f6ae9ddeee74 Mon Sep 17 00:00:00 2001 From: Alexey Ochapov Date: Tue, 16 Feb 2021 08:01:11 +0300 Subject: [PATCH] update wording in the error inside `arg_id_handler`, use `FMT_ASSERT` instead of `throw` --- include/fmt/compile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/compile.h b/include/fmt/compile.h index 39b8969c..f10ba4d0 100644 --- a/include/fmt/compile.h +++ b/include/fmt/compile.h @@ -589,7 +589,7 @@ template struct arg_id_handler { constexpr void on_error(const char* message) { throw format_error(message); } constexpr int on_arg_id() { - throw format_error("handler cannot be used for empty arg_id"); + FMT_ASSERT(false, "handler cannot be used with automatic indexing"); return 0; }