From 7713daa86adf7980fd73cae40203ab6deb6be8b8 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 20 Aug 2023 11:47:06 +0200 Subject: compositor: log thrown runtime exceptions --- src/helpers/MiscFunctions.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/helpers/MiscFunctions.cpp') diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index acda2abd..7bf254ea 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -714,3 +714,8 @@ std::vector getBacktrace() { return callstack; } + +void throwError(const std::string& err) { + Debug::log(CRIT, "Critical error thrown: %s", err.c_str()); + throw std::runtime_error(err); +} -- cgit v1.2.3