diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-22 11:40:23 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-22 11:40:23 -0300 |
commit | f388ee4a822b3d8027ed7c28aa21e9406e4a11eb (patch) | |
tree | 33053e6e31ac1dee0fe27ff7fdba64325a624fe1 /ldebug.c | |
parent | 30ad4c75db38639f52fb1c8be1c5a3f5b58e776f (diff) | |
download | lua-f388ee4a822b3d8027ed7c28aa21e9406e4a11eb.tar.gz lua-f388ee4a822b3d8027ed7c28aa21e9406e4a11eb.tar.bz2 lua-f388ee4a822b3d8027ed7c28aa21e9406e4a11eb.zip |
new way to handle errors
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 1.107 2002/04/09 19:47:44 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 1.108 2002/04/10 12:11:07 roberto Exp roberto $ |
3 | ** Debug Interface | 3 | ** Debug Interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -144,7 +144,7 @@ static void funcinfo (lua_State *L, lua_Debug *ar, StkId func) { | |||
144 | if (ttype(func) == LUA_TFUNCTION) | 144 | if (ttype(func) == LUA_TFUNCTION) |
145 | cl = clvalue(func); | 145 | cl = clvalue(func); |
146 | else { | 146 | else { |
147 | luaD_error(L, "value for `lua_getinfo' is not a function"); | 147 | luaD_runerror(L, "value for `lua_getinfo' is not a function"); |
148 | cl = NULL; /* to avoid warnings */ | 148 | cl = NULL; /* to avoid warnings */ |
149 | } | 149 | } |
150 | if (cl->c.isC) { | 150 | if (cl->c.isC) { |