Skip to content

refactor: track tlua error locatio

Yaroslav Dynnikov requested to merge error-location into master

When lua raises an error from the code loaded with tlua::exec() and tlua::eval(), it looks as follows:

[string \"chunk\"]:1: oops

It gives no useful information and complicates debugging.

With this patch, lua errors will correctly point to the place where exec() was called, e.g.:

[tests/src/tlua/lua_functions.rs:216]:6: oops
Edited by Yaroslav Dynnikov

Merge request reports