From 493c77a499511be1e30a6075fa476908c96dbf47 Mon Sep 17 00:00:00 2001 From: Lua Team Date: Sat, 25 Aug 2007 00:00:00 -0400 Subject: [PATCH] An error in a module loaded through the '-l' option shows no traceback. Reported by David Manura on 25 Aug 2007 --- src/lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua.c b/src/lua.c index 5cee7fa..b53ed4a 100644 --- a/src/lua.c +++ b/src/lua.c @@ -144,7 +144,7 @@ static int dostring (lua_State *L, const char *s, const char *name) { static int dolibrary (lua_State *L, const char *name) { lua_getglobal(L, "require"); lua_pushstring(L, name); - return report(L, lua_pcall(L, 1, 0, 0)); + return report(L, docall(L, 1, 1)); } -- 2.11.4.GIT