Skip to content

Commit

Permalink
Print x.what() of FMT_THROW when exception is disabled (#2145)
Browse files Browse the repository at this point in the history
Signed-off-by: Jiahao XU <[email protected]>
  • Loading branch information
NobodyXu authored Feb 24, 2021
1 parent d8e1c9f commit 640acba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ FMT_END_NAMESPACE
# else
# define FMT_THROW(x) \
do { \
static_cast<void>(x); \
FMT_ASSERT(false, ""); \
FMT_ASSERT(false, (x).what()); \
} while (false)
# endif
#endif
Expand Down

0 comments on commit 640acba

Please sign in to comment.