hg 86f39743fc
[Quest API] Add tracebacks to Lua error messages (#4079)
This adds an error msg handler for lua calls to add a stack trace to
error messages. Lua 5.1 does not have luaL_traceback like luajit and lua
5.2+ so debug.traceback() is used directly as the msg handler.

The traceback will add more detail to errors than just logging package
and event names. Exceptions in C++ binds and luabind errors will now
show script context instead of just the error message.

e.g., for a luabind overload error:

  No matching overload found, candidates:
  void signal(int,int,int)
  void signal(int,int)
  stack traceback:
    [C]: in function 'signal'
    quests/arena/player.lua:10: in function 'somefn'
    quests/arena/player.lua:27: in function <quests/arena/player.lua:17>
2024-02-16 00:27:37 -06:00
..
2023-10-23 22:39:37 -05:00
2023-09-17 13:12:43 -05:00
2024-02-07 23:02:30 -05:00
2024-02-07 23:02:30 -05:00
2021-08-31 01:24:21 -05:00
2024-02-07 23:02:30 -05:00
2024-02-07 23:02:30 -05:00
2024-02-07 23:02:30 -05:00
2023-07-30 01:35:44 -05:00
2024-02-07 23:02:30 -05:00
2024-02-07 23:02:30 -05:00
2024-02-07 23:02:30 -05:00
2024-02-07 23:02:30 -05:00
2024-02-07 23:02:30 -05:00
2024-02-07 23:02:30 -05:00