|
> I'm thinking what would be nice is if error() (and the C versions like
> lua_error) could return more than just a text message.
This is already possible: you can use any Lua value as the "message".
In particular, you can send a complex error message by using a table.