An error in a module loaded through the '-l' option

shows no traceback.
This commit is contained in:
Roberto Ierusalimschy 2007-09-05 14:18:27 -03:00
parent c676f13e1a
commit 8acaa2ce07
1 changed files with 18 additions and 0 deletions

18
bugs
View File

@ -1520,6 +1520,24 @@ lparser.c:
]],
}
Bug{
what = [[An error in a module loaded through the '-l' option
shows no traceback]],
report = [[David Manura, on 08/2007]],
since = [[5.1]],
example = [[lua -ltemp (assuming temp.lua has an error)]],
patch = [[
lua.c:
@@ -144,7 +144,7 @@
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));
}
]],
}
Bug{
what = [[ ]],
report = [[ , on ]],