commit 5b08fcd5a1392a7440cae91e68f350a44b136806
parent b1b0c219f5255a0cd0921ebc0a77a81f99b72532
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Mon, 27 Dec 1999 11:04:31 -0200
no more "lua" in error messages
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lbuiltin.c b/lbuiltin.c
@@ -1,5 +1,5 @@
/*
-** $Id: lbuiltin.c,v 1.86 1999/12/20 13:10:38 roberto Exp roberto $
+** $Id: lbuiltin.c,v 1.87 1999/12/23 18:19:57 roberto Exp roberto $
** Built-in functions
** See Copyright Notice in lua.h
*/
@@ -107,7 +107,7 @@ void luaB_ERRORMESSAGE (lua_State *L) {
lua_Object al = lua_rawgetglobal(L, "_ALERT");
if (lua_isfunction(L, al)) { /* avoid error loop if _ALERT is not defined */
char buff[600];
- sprintf(buff, "lua error: %.500s\n", luaL_check_string(L, 1));
+ sprintf(buff, "error: %.500s\n", luaL_check_string(L, 1));
lua_pushstring(L, buff);
lua_callfunction(L, al);
}
diff --git a/liolib.c b/liolib.c
@@ -1,5 +1,5 @@
/*
-** $Id: liolib.c,v 1.51 1999/11/22 13:12:07 roberto Exp roberto $
+** $Id: liolib.c,v 1.52 1999/11/22 17:39:51 roberto Exp roberto $
** Standard I/O (and system) library
** See Copyright Notice in lua.h
*/
@@ -533,7 +533,7 @@ static void errorfb (lua_State *L) {
char buff[MAXMESSAGE];
int level = 1; /* skip level 0 (it's this function) */
lua_Object func;
- sprintf(buff, "lua error: %.200s\n", lua_getstring(L, lua_getparam(L, 1)));
+ sprintf(buff, "error: %.200s\n", lua_getstring(L, lua_getparam(L, 1)));
while ((func = lua_stackedfunction(L, level++)) != LUA_NOOBJECT) {
const char *name;
int currentline;