refactor(fits_categorizer): turn exception into assertion

This commit is contained in:
Marcus Holland-Moritz 2025-08-29 15:52:29 +02:00
parent 02a8875d5d
commit 1370bbb385

View File

@ -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);
}