mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Improve Script CPP API diagnostics
This commit is contained in:
@@ -165,9 +165,9 @@ void ScriptApiBase::realityCheck()
|
||||
}
|
||||
}
|
||||
|
||||
void ScriptApiBase::scriptError()
|
||||
void ScriptApiBase::scriptError(int result, const char *fxn)
|
||||
{
|
||||
throw LuaError(lua_tostring(m_luastack, -1));
|
||||
script_error(getStack(), result, fxn);
|
||||
}
|
||||
|
||||
void ScriptApiBase::stackDump(std::ostream &o)
|
||||
|
Reference in New Issue
Block a user