From 1370bbb3855d8ae622d96bdeb47881410fcdba57 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Fri, 29 Aug 2025 15:52:29 +0200 Subject: [PATCH] refactor(fits_categorizer): turn exception into assertion --- src/writer/categorizer/fits_categorizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/writer/categorizer/fits_categorizer.cpp b/src/writer/categorizer/fits_categorizer.cpp index 9c0beed0..4e84843b 100644 --- a/src/writer/categorizer/fits_categorizer.cpp +++ b/src/writer/categorizer/fits_categorizer.cpp @@ -60,7 +60,7 @@ struct fmt::formatter : formatter { sv = "big"; break; default: - throw std::runtime_error("internal error: unhandled endianness value"); + DWARFS_PANIC("internal error: unhandled endianness value"); } return formatter::format(sv, ctx); }