From d3b2fac5c997510c2dd646268ae7a5762335637b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 7 Sep 2026 15:36:06 -0700 Subject: [PATCH] Simplify exception_ptr fallback formatting --- include/fmt/std.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/fmt/std.h b/include/fmt/std.h index 1c43e007..cb3b452f 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -697,11 +697,9 @@ template <> struct formatter : formatter { } catch (const std::exception& e) { return formatter::format(e, ctx); } catch (...) { - return this->write_padded(ctx, string_view("unknown exception")); } -#else - return this->write_padded(ctx, string_view("unknown exception")); #endif // FMT_USE_EXCEPTIONS + return this->write_padded(ctx, string_view("unknown exception")); } };