mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-22 19:02:24 -04:00
refactor(fits_categorizer): turn exception into assertion
This commit is contained in:
parent
02a8875d5d
commit
1370bbb385
@ -60,7 +60,7 @@ struct fmt::formatter<std::endian> : formatter<std::string_view> {
|
||||
sv = "big";
|
||||
break;
|
||||
default:
|
||||
throw std::runtime_error("internal error: unhandled endianness value");
|
||||
DWARFS_PANIC("internal error: unhandled endianness value");
|
||||
}
|
||||
return formatter<std::string_view>::format(sv, ctx);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user