mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd::fmt: Show demangled type name of faulty argument.
This commit is contained in:
parent
4a24b57035
commit
277765ebbc
1 changed files with 3 additions and 2 deletions
|
@ -375,8 +375,9 @@ try
|
|||
{
|
||||
const auto &type(get<1>(val));
|
||||
const auto &handler(*specifiers().at(spec.name));
|
||||
if(!handler(out, max, spec, val))
|
||||
throw invalid_type("`%s' for format specifier '%s' for argument #%u",
|
||||
if(unlikely(!handler(out, max, spec, val)))
|
||||
throw invalid_type("`%s' (%s) for format specifier '%s' for argument #%u",
|
||||
demangle(type.name()),
|
||||
type.name(),
|
||||
spec.name,
|
||||
idx);
|
||||
|
|
Loading…
Reference in a new issue