diff options
| -rw-r--r-- | bugs | 18 |
1 files changed, 18 insertions, 0 deletions
| @@ -1521,6 +1521,24 @@ lparser.c: | |||
| 1521 | } | 1521 | } |
| 1522 | 1522 | ||
| 1523 | Bug{ | 1523 | Bug{ |
| 1524 | what = [[An error in a module loaded through the '-l' option | ||
| 1525 | shows no traceback]], | ||
| 1526 | report = [[David Manura, on 08/2007]], | ||
| 1527 | since = [[5.1]], | ||
| 1528 | example = [[lua -ltemp (assuming temp.lua has an error)]], | ||
| 1529 | patch = [[ | ||
| 1530 | lua.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 | |||
| 1541 | Bug{ | ||
| 1524 | what = [[ ]], | 1542 | what = [[ ]], |
| 1525 | report = [[ , on ]], | 1543 | report = [[ , on ]], |
| 1526 | since = [[i ]], | 1544 | since = [[i ]], |
