diff --git a/include/fmt/format.h b/include/fmt/format.h index 53094c1a50d9..ffc3bfc59616 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -123,8 +123,7 @@ FMT_END_NAMESPACE # else # define FMT_THROW(x) \ do { \ - static_cast(x); \ - FMT_ASSERT(false, ""); \ + FMT_ASSERT(false, (x).what()); \ } while (false) # endif #endif