From f388ee4a822b3d8027ed7c28aa21e9406e4a11eb Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 22 Apr 2002 11:40:23 -0300 Subject: new way to handle errors --- ldebug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index b34e6fff..2fa719ee 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 1.107 2002/04/09 19:47:44 roberto Exp roberto $ +** $Id: ldebug.c,v 1.108 2002/04/10 12:11:07 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -144,7 +144,7 @@ static void funcinfo (lua_State *L, lua_Debug *ar, StkId func) { if (ttype(func) == LUA_TFUNCTION) cl = clvalue(func); else { - luaD_error(L, "value for `lua_getinfo' is not a function"); + luaD_runerror(L, "value for `lua_getinfo' is not a function"); cl = NULL; /* to avoid warnings */ } if (cl->c.isC) { -- cgit v1.2.3-55-g6feb