compositor: log thrown runtime exceptions

This commit is contained in:
vaxerski 2023-08-20 11:47:06 +02:00
parent fff118fa76
commit 7713daa86a
3 changed files with 13 additions and 7 deletions

View file

@ -714,3 +714,8 @@ std::vector<SCallstackFrameInfo> getBacktrace() {
return callstack;
}
void throwError(const std::string& err) {
Debug::log(CRIT, "Critical error thrown: %s", err.c_str());
throw std::runtime_error(err);
}