Files
jbashrc/claude/integration-memory/project_eris_addinfo_removed.md

15 lines
1020 B
Markdown
Raw Normal View History

2026-05-26 16:58:29 -04:00
---
name: project-eris-addinfo-removed
description: "In this project's Eris fork, ldebug.c's addinfo() is intentionally commented out (luaG_runerror no longer prepends file:line: to error messages)."
metadata:
node_type: memory
type: project
originSessionId: bf905462-91dc-4dab-9f49-f76bf9ed0c8e
---
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.