1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Revert "Make sure we get a stacktrace for as many lua errors as possible"

This reverts commit 362ef5f6ce.

Stack tracebacks couldn't be generated in LuaError::LuaError anyway and this
caused a second, empty traceback in most cases.  In cases where there wasn't
annother traceback the stack had already unwound and the traceback was empty.
This commit is contained in:
ShadowNinja
2014-03-15 16:01:06 -04:00
parent 23be6450a1
commit f8b7555558
6 changed files with 29 additions and 29 deletions

View File

@@ -71,7 +71,7 @@ void script_error(lua_State *L)
{
const char *s = lua_tostring(L, -1);
std::string str(s ? s : "");
throw LuaError(L, str);
throw LuaError(NULL, str);
}
// Push the list of callbacks (a lua table).