1020 B
1020 B
name, description, metadata
| name | description | metadata | ||||||
|---|---|---|---|---|---|---|---|---|
| project-eris-addinfo-removed | In this project's Eris fork, ldebug.c's addinfo() is intentionally commented out (luaG_runerror no longer prepends file:line: to error messages). |
|
In luprex/ext/eris-master/src/ldebug.c, the addinfo function is commented out, and luaG_runerror no longer calls it. This means stock Lua's "file:line: <msg>" prefix is NOT added to runtime error messages.
Why: This project always appends a full traceback to errors via traceback_pcall / traceback_coroutine (in luprex/cpp/core/traceback.cpp). The traceback already shows file:line for every frame including the one that threw, so addinfo's prefix would be redundant.
How to apply: Don't "fix" the commented-out addinfo. If a runtime error message looks bare (no leading file:line:), that's expected — the traceback machinery is responsible for location info, not the message itself.