forked from mirror/openmw-tes3mp
[Server] Include errors related to Lua calls in server logs
This commit is contained in:
parent
ef80894c5c
commit
2933526995
1 changed files with 11 additions and 1 deletions
|
@ -90,7 +90,17 @@ public:
|
|||
(callback)(std::forward<Args>(args)...);
|
||||
#if defined (ENABLE_LUA)
|
||||
else if (script->script_type == SCRIPT_LUA)
|
||||
{
|
||||
try
|
||||
{
|
||||
script->lang->Call(data.name, data.callback.types, B, std::forward<Args>(args)...);
|
||||
}
|
||||
catch (std::exception &e)
|
||||
{
|
||||
LOG_MESSAGE_SIMPLE(Log::LOG_ERROR, e.what());
|
||||
throw;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
++count;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue