From 3684f67771a171da83cc4f7fae4e24a39e0919aa Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 6 Mar 2003 16:36:16 -0300 Subject: [PATCH] details (text of an error message) --- lbaselib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbaselib.c b/lbaselib.c index 9bb71492..4e924e2c 100644 --- a/lbaselib.c +++ b/lbaselib.c @@ -1,5 +1,5 @@ /* -** $Id: lbaselib.c,v 1.123 2003/02/24 16:54:20 roberto Exp roberto $ +** $Id: lbaselib.c,v 1.124 2003/02/27 11:52:30 roberto Exp roberto $ ** Basic library ** See Copyright Notice in lua.h */ @@ -124,7 +124,7 @@ static void getfunc (lua_State *L) { luaL_argerror(L, 1, "invalid level"); lua_getinfo(L, "f", &ar); if (lua_isnil(L, -1)) - luaL_error(L, "cannot get/set environment (tail call at level %d)", + luaL_error(L, "no function environment for tail call at level %d", level); } }