D'oh!
This commit is contained in:
parent
54a331b919
commit
544d5d8077
@ -99,7 +99,7 @@ struct to_lua_object : public boost::static_visitor<sol::object>
|
|||||||
void handle_lua_error(sol::protected_function_result &luares)
|
void handle_lua_error(sol::protected_function_result &luares)
|
||||||
{
|
{
|
||||||
sol::error luaerr = luares;
|
sol::error luaerr = luares;
|
||||||
const sol::table &inner_table = pair.second;
|
const auto msg = luaerr.what();
|
||||||
std::cerr << msg << std::endl;
|
std::cerr << msg << std::endl;
|
||||||
throw util::exception("Lua error (see stderr for traceback)");
|
throw util::exception("Lua error (see stderr for traceback)");
|
||||||
}
|
}
|
||||||
@ -1080,7 +1080,7 @@ Sol2ScriptingEnvironment::GetStringListsFromTable(const std::string &table_name)
|
|||||||
|
|
||||||
for (const auto &pair : *table)
|
for (const auto &pair : *table)
|
||||||
{
|
{
|
||||||
const sol::table& inner_table = pair.second;
|
const sol::table &inner_table = pair.second;
|
||||||
if (!inner_table.valid())
|
if (!inner_table.valid())
|
||||||
{
|
{
|
||||||
throw util::exception("Expected a sub-table at " + table_name + "[" +
|
throw util::exception("Expected a sub-table at " + table_name + "[" +
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user