message detail

This commit is contained in:
Roberto Ierusalimschy 2000-03-22 13:24:13 -03:00
parent 441469f803
commit 5f3c5ace95
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
** $Id: liolib.c,v 1.58 2000/03/03 14:58:26 roberto Exp roberto $
** $Id: liolib.c,v 1.59 2000/03/20 19:13:45 roberto Exp roberto $
** Standard I/O (and system) library
** See Copyright Notice in lua.h
*/
@ -543,7 +543,7 @@ static void errorfb (lua_State *L) {
char buffchunk[60];
lua_getinfo(L, "Snl", &ar);
luaL_chunkid(buffchunk, ar.source, sizeof(buffchunk));
if (level == 2) strcat(buff, "Stack traceback:\n");
if (level == 2) strcat(buff, "stack traceback:\n");
strcat(buff, " ");
if (strlen(buff) > MAXMESSAGE-MESSAGESIZE) {
strcat(buff, "...\n");