diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index 855a2076..d2fafc42 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -385,7 +385,7 @@ struct formatter, Char> { if (N > 1) { auto end1 = do_parse(ctx, std::integral_constant{}); if (end != end1) - throw fmt::format_error("incompatible format specs for tuple elements"); + FMT_THROW(format_error("incompatible format specs for tuple elements")); } return end; }