aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2007-09-05 14:18:27 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2007-09-05 14:18:27 -0300
commit8acaa2ce07ff19a99a8f6d97627df37fd15cc669 (patch)
tree9078ac02091d12beb26e93281ad0a2f1b6d42013
parentc676f13e1a7dd175f2a966c976e9f478dd69323b (diff)
downloadlua-8acaa2ce07ff19a99a8f6d97627df37fd15cc669.tar.gz
lua-8acaa2ce07ff19a99a8f6d97627df37fd15cc669.tar.bz2
lua-8acaa2ce07ff19a99a8f6d97627df37fd15cc669.zip
An error in a module loaded through the '-l' option
shows no traceback.
-rw-r--r--bugs18
1 files changed, 18 insertions, 0 deletions
diff --git a/bugs b/bugs
index 92c5b6f0..6743c41e 100644
--- a/bugs
+++ b/bugs
@@ -1521,6 +1521,24 @@ lparser.c:
1521} 1521}
1522 1522
1523Bug{ 1523Bug{
1524what = [[An error in a module loaded through the '-l' option
1525shows no traceback]],
1526report = [[David Manura, on 08/2007]],
1527since = [[5.1]],
1528example = [[lua -ltemp (assuming temp.lua has an error)]],
1529patch = [[
1530lua.c:
1531@@ -144,7 +144,7 @@
1532 static int dolibrary (lua_State *L, const char *name) {
1533 lua_getglobal(L, "require");
1534 lua_pushstring(L, name);
1535- return report(L, lua_pcall(L, 1, 0, 0));
1536+ return report(L, docall(L, 1, 1));
1537 }
1538]],
1539}
1540
1541Bug{
1524what = [[ ]], 1542what = [[ ]],
1525report = [[ , on ]], 1543report = [[ , on ]],
1526since = [[i ]], 1544since = [[i ]],