aboutsummaryrefslogtreecommitdiff
path: root/lbuiltin.c
diff options
context:
space:
mode:
Diffstat (limited to 'lbuiltin.c')
-rw-r--r--lbuiltin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbuiltin.c b/lbuiltin.c
index bd8647e8..51bea491 100644
--- a/lbuiltin.c
+++ b/lbuiltin.c
@@ -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 }