We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cff2970 commit fc4b3bcCopy full SHA for fc4b3bc
src/LuaError.cpp
@@ -75,7 +75,7 @@ String LuaError::extract_message(const sol::load_result& load_result) {
75
}
76
77
String LuaError::extract_message(const sol::protected_function_result& function_result) {
78
- return luaL_tolstring(function_result.lua_state(), function_result.stack_index(), NULL);
+ return luaL_tolstring(function_result.lua_state(), function_result.stack_index() + function_result.return_count() - 1, NULL);
79
80
81
0 commit comments