[lua] fix usage of lua_typename
This commit is contained in:
parent
8a0a8715d0
commit
9f9fe72d97
|
@ -56,7 +56,7 @@ static liValue* li_value_from_lua_table(liServer *srv, lua_State *L, int ndx) {
|
|||
break;
|
||||
|
||||
default:
|
||||
ERROR(srv, "Unexpted key type in table: %s (%i) - skipping entry", lua_typename(L, -1), lua_type(L, -1));
|
||||
ERROR(srv, "Unexpted key type in table: %s (%i) - skipping entry", lua_typename(L, lua_type(L, -1)), lua_type(L, -1));
|
||||
lua_pop(L, 1);
|
||||
break;
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ liValue* li_value_from_lua(liServer *srv, lua_State *L) {
|
|||
case LUA_TTHREAD:
|
||||
case LUA_TNONE:
|
||||
default:
|
||||
ERROR(srv, "Unexpected lua type: %s (%i)", lua_typename(L, -1), lua_type(L, -1));
|
||||
ERROR(srv, "Unexpected lua type: %s (%i)", lua_typename(L, lua_type(L, -1)), lua_type(L, -1));
|
||||
lua_pop(L, 1);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -412,7 +412,7 @@ static luaPlugin* lua_plugin_create_data(liServer *srv, lua_State *L) {
|
|||
break;
|
||||
|
||||
default:
|
||||
ERROR(srv, "Unexpted key type in table 'actions': %s (%i) - skipping entry", lua_typename(L, -1), lua_type(L, -1));
|
||||
ERROR(srv, "Unexpted key type in table 'actions': %s (%i) - skipping entry", lua_typename(L, lua_type(L, -1)), lua_type(L, -1));
|
||||
lua_pop(L, 1);
|
||||
break;
|
||||
}
|
||||
|
@ -438,7 +438,7 @@ static luaPlugin* lua_plugin_create_data(liServer *srv, lua_State *L) {
|
|||
break;
|
||||
|
||||
default:
|
||||
ERROR(srv, "Unexpted key type in table 'setups': %s (%i) - skipping entry", lua_typename(L, -1), lua_type(L, -1));
|
||||
ERROR(srv, "Unexpted key type in table 'setups': %s (%i) - skipping entry", lua_typename(L, lua_type(L, -1)), lua_type(L, -1));
|
||||
lua_pop(L, 1);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue