mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 20:46:47 +03:00
Make ExecuteFunction print a better error message with the name of the function.
This commit is contained in:
parent
f5f46966fc
commit
85d37a3594
1 changed files with 1 additions and 1 deletions
|
@ -623,7 +623,7 @@ void GameScript::ExecuteFunction(std::string const & name)
|
|||
if (!r.valid())
|
||||
{
|
||||
sol::error err = r;
|
||||
ScriptAssert(false, err.what(), ERROR_MODE::TERMINATE);
|
||||
ScriptAssertF(false, "Could not execute function {}: {}", name, err.what());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue