mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-06 16:57:03 +08:00
Simplify report_error
This commit is contained in:
parent
61e0503daf
commit
b7b261977e
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user