fix(plugins): handle non-string errors gracefully (#6441)

This commit is contained in:
nerix
2025-09-06 12:02:38 +02:00
committed by GitHub
parent 5af6626e76
commit 6a0ca0bff8
4 changed files with 52 additions and 4 deletions
+1 -2
View File
@@ -596,8 +596,7 @@ void PluginRepl::logResult(const sol::protected_function_result &res,
{
if (!res.valid())
{
sol::error err = res;
this->log(lua::api::LogLevel::Critical, err.what());
this->log(lua::api::LogLevel::Critical, lua::errorResultToString(res));
return;
}
if (res.return_count() == 0)