Browse Source

message detail

v5-2
Roberto Ierusalimschy 25 years ago
parent
commit
5f3c5ace95
  1. 4
      liolib.c

4
liolib.c

@ -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");

Loading…
Cancel
Save