commit 8acaa2ce07ff19a99a8f6d97627df37fd15cc669
parent c676f13e1a7dd175f2a966c976e9f478dd69323b
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Wed, 5 Sep 2007 14:18:04 -0300
An error in a module loaded through the '-l' option
shows no traceback.
Diffstat:
M | bugs | | | 18 | ++++++++++++++++++ |
1 file changed, 18 insertions(+), 0 deletions(-)
diff --git a/bugs b/bugs
@@ -1521,6 +1521,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 ]],
since = [[i ]],