diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h index 3b317af8..386c9723 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -147,12 +147,7 @@ FMT_FUNC void report_error(const char* message) { volatile bool b = true; if (!b) return; #endif -#if FMT_USE_EXCEPTIONS - throw format_error(message); -#else - fputs(message, stderr); - abort(); -#endif + FMT_THROW(format_error(message)); } template typename Locale::id format_facet::id;