From 7682c1460f541453e6f03ee93fe1b974670733c4 Mon Sep 17 00:00:00 2001 From: Max Roncace Date: Sat, 15 Jun 2024 12:07:10 -0400 Subject: [PATCH] lowlevel: Crash on invalid argument --- engine/libs/lowlevel/include/argus/lowlevel/error_util.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engine/libs/lowlevel/include/argus/lowlevel/error_util.hpp b/engine/libs/lowlevel/include/argus/lowlevel/error_util.hpp index fd23e0c7..02be9e10 100644 --- a/engine/libs/lowlevel/include/argus/lowlevel/error_util.hpp +++ b/engine/libs/lowlevel/include/argus/lowlevel/error_util.hpp @@ -20,7 +20,6 @@ #include "argus/lowlevel/crash.hpp" -#include #include #define validate_arg(cond, what) _validate_arg(cond, __func__, what) @@ -31,7 +30,7 @@ inline void _validate_arg(bool cond, const std::string &caller, const std::string &what) { if (!cond) { - throw std::invalid_argument(caller + ": " + what); + argus::crash_ll(caller + ": " + what); } }