Make error messages uniform.

This commit is contained in:
Shmuel Zeigerman
2014-08-06 02:14:56 +03:00
parent d55af47357
commit 896b845053
+2 -2
View File
@@ -136,9 +136,9 @@ static void check_subject (lua_State *L, int pos, TArgExec *argE)
lua_pop (L, 1);
#if LUA_VERSION_NUM == 501
if (!luaL_callmeta (L, pos, "__len"))
luaL_argerror (L, pos, "the subject has no valid __len metamethod");
luaL_argerror (L, pos, "subject has no valid __len metamethod");
if (lua_type (L, -1) != LUA_TNUMBER)
luaL_argerror (L, pos, "object length is not a number");
luaL_argerror (L, pos, "subject's length is not a number");
argE->textlen = lua_tointeger (L, -1);
lua_pop (L, 1);
#else