mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 11:14:41 +00:00
update wording in the error inside arg_id_handler
, use FMT_ASSERT
instead of throw
This commit is contained in:
parent
499047e132
commit
3f69af3aaf
@ -589,7 +589,7 @@ template <typename Char> 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user