commit 5362426ffa93031e194632c97c39194fd21cedf3
parent 906434011f09a5afe60fbb644db6995a5ca21f0d
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Wed, 28 Jun 2000 14:03:34 -0300
error message
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ltable.c b/ltable.c
@@ -1,5 +1,5 @@
/*
-** $Id: ltable.c,v 1.47 2000/06/08 17:48:31 roberto Exp roberto $
+** $Id: ltable.c,v 1.48 2000/06/12 13:52:05 roberto Exp roberto $
** Lua tables (hash)
** See Copyright Notice in lua.h
*/
@@ -73,7 +73,7 @@ static const TObject *luaH_getany (lua_State *L, const Hash *t,
const TObject *key) {
Node *n = luaH_mainposition(t, key);
if (!n)
- lua_error(L, "unexpected type to index table");
+ lua_error(L, "table index is nil");
else do {
if (luaO_equalObj(key, &n->key))
return &n->val;
@@ -226,7 +226,7 @@ TObject *luaH_set (lua_State *L, Hash *t, const TObject *key) {
Node *mp = luaH_mainposition(t, key);
Node *n = mp;
if (!mp)
- lua_error(L, "unexpected type to index table");
+ lua_error(L, "table index is nil");
do { /* check whether `key' is somewhere in the chain */
if (luaO_equalObj(key, &n->key))
return &n->val; /* that's all */