Skip to content

returning error in M when Lua code crashed. #12

Closed Answered by berwynhoyt
AlainDsc asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Alain. The mlua.lua() return value tells you whether the result was an error. From the README:

On error, mlua.lua() returns nonzero and the error message is sent to stdout or returned in .output (if >1 parameter supplied).

Does this do what you need?

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@AlainDsc
Comment options

@berwynhoyt
Comment options

@AlainDsc
Comment options

Answer selected by berwynhoyt
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants