Throwing error from Rust code (module) causes "error object is not a string" #270
Unanswered
mauricelam
asked this question in
Q&A
Replies: 1 comment
-
I'm afraid lua 5.1 does not call |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do I throw an error in Rust so that it will be printed out when called from lua?
Here's my test case for the behavior:
I am tried both 0.9.0-beta.1 and 0.8.8 on Mac using lua 5.1. My lua file is literally just
require('luaerror')
and the output I get is$ cargo build && lua5.1 test.lua lua5.1: (error object is not a string)
Beta Was this translation helpful? Give feedback.
All reactions