mirror of
https://github.com/fmtlib/fmt.git
synced 2025-09-27 15:10:55 +02:00
Simplify report_error
This commit is contained in:
@@ -140,9 +140,7 @@ FMT_FUNC void report_error(const char* message) {
|
||||
if (!b) return;
|
||||
#endif
|
||||
#if FMT_USE_EXCEPTIONS
|
||||
// Use FMT_THROW instead of throw to avoid bogus unreachable code warnings
|
||||
// from MSVC.
|
||||
FMT_THROW(format_error(message));
|
||||
throw format_error(message);
|
||||
#else
|
||||
fputs(message, stderr);
|
||||
abort();
|
||||
|
Reference in New Issue
Block a user