Fix backwards type errors;

This commit is contained in:
bjorn 2020-09-21 17:32:53 -07:00
parent d28d96008c
commit 2c979b1d9d
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ int luax_typeerror(lua_State* L, int index, const char* expected) {
} else { } else {
name = luaL_typename(L, index); name = luaL_typename(L, index);
} }
const char* message = lua_pushfstring(L, "%s expected, got %s", name, expected); const char* message = lua_pushfstring(L, "%s expected, got %s", expected, name);
return luaL_argerror(L, index, message); return luaL_argerror(L, index, message);
} }