diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-27 11:04:53 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-27 11:04:53 -0200 |
commit | 5b08fcd5a1392a7440cae91e68f350a44b136806 (patch) | |
tree | 01c8b8b37fbbb1b845e3a87b04afc93145f875d4 | |
parent | b1b0c219f5255a0cd0921ebc0a77a81f99b72532 (diff) | |
download | lua-5b08fcd5a1392a7440cae91e68f350a44b136806.tar.gz lua-5b08fcd5a1392a7440cae91e68f350a44b136806.tar.bz2 lua-5b08fcd5a1392a7440cae91e68f350a44b136806.zip |
no more "lua" in error messages
-rw-r--r-- | lbuiltin.c | 4 | ||||
-rw-r--r-- | liolib.c | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbuiltin.c,v 1.86 1999/12/20 13:10:38 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.87 1999/12/23 18:19:57 roberto Exp roberto $ |
3 | ** Built-in functions | 3 | ** Built-in functions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -107,7 +107,7 @@ void luaB_ERRORMESSAGE (lua_State *L) { | |||
107 | lua_Object al = lua_rawgetglobal(L, "_ALERT"); | 107 | lua_Object al = lua_rawgetglobal(L, "_ALERT"); |
108 | if (lua_isfunction(L, al)) { /* avoid error loop if _ALERT is not defined */ | 108 | if (lua_isfunction(L, al)) { /* avoid error loop if _ALERT is not defined */ |
109 | char buff[600]; | 109 | char buff[600]; |
110 | sprintf(buff, "lua error: %.500s\n", luaL_check_string(L, 1)); | 110 | sprintf(buff, "error: %.500s\n", luaL_check_string(L, 1)); |
111 | lua_pushstring(L, buff); | 111 | lua_pushstring(L, buff); |
112 | lua_callfunction(L, al); | 112 | lua_callfunction(L, al); |
113 | } | 113 | } |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 1.51 1999/11/22 13:12:07 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 1.52 1999/11/22 17:39:51 roberto Exp roberto $ |
3 | ** Standard I/O (and system) library | 3 | ** Standard I/O (and system) library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -533,7 +533,7 @@ static void errorfb (lua_State *L) { | |||
533 | char buff[MAXMESSAGE]; | 533 | char buff[MAXMESSAGE]; |
534 | int level = 1; /* skip level 0 (it's this function) */ | 534 | int level = 1; /* skip level 0 (it's this function) */ |
535 | lua_Object func; | 535 | lua_Object func; |
536 | sprintf(buff, "lua error: %.200s\n", lua_getstring(L, lua_getparam(L, 1))); | 536 | sprintf(buff, "error: %.200s\n", lua_getstring(L, lua_getparam(L, 1))); |
537 | while ((func = lua_stackedfunction(L, level++)) != LUA_NOOBJECT) { | 537 | while ((func = lua_stackedfunction(L, level++)) != LUA_NOOBJECT) { |
538 | const char *name; | 538 | const char *name; |
539 | int currentline; | 539 | int currentline; |