From 2c979b1d9d15216180c656f2df79080463fb4fe4 Mon Sep 17 00:00:00 2001 From: bjorn Date: Mon, 21 Sep 2020 17:32:53 -0700 Subject: [PATCH] Fix backwards type errors; --- src/api/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/api.c b/src/api/api.c index 21e42de4..03a3851f 100644 --- a/src/api/api.c +++ b/src/api/api.c @@ -108,7 +108,7 @@ int luax_typeerror(lua_State* L, int index, const char* expected) { } else { 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); }