From 8dae071f42bf036ea3f61468aca825397c8e33e4 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 16 Sep 2002 16:18:01 -0300 Subject: details --- ldblib.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ldblib.c b/ldblib.c index 7294ce97..50b632a4 100644 --- a/ldblib.c +++ b/ldblib.c @@ -1,5 +1,5 @@ /* -** $Id: ldblib.c,v 1.68 2002/08/16 14:45:18 roberto Exp roberto $ +** $Id: ldblib.c,v 1.69 2002/09/05 19:45:42 roberto Exp roberto $ ** Interface from Lua to its debug API ** See Copyright Notice in lua.h */ @@ -198,7 +198,8 @@ static int errorfb (lua_State *L) { if (lua_gettop(L) == 0) lua_pushliteral(L, ""); else if (!lua_isstring(L, 1)) return 1; /* no string message */ - lua_pushliteral(L, "\nstack traceback:"); + else lua_pushliteral(L, "\n"); + lua_pushliteral(L, "stack traceback:"); while (lua_getstack(L, level++, &ar)) { if (level > LEVELS1 && firstpart) { /* no more than `LEVELS2' more levels? */ -- cgit v1.2.3-55-g6feb