tomaka / hlua

Rust library to interface with Lua
MIT License
507 stars 48 forks source link

Make Result interoperable with Lua error handling #130

Closed jonas-schievink closed 7 years ago

jonas-schievink commented 7 years ago

An Ok will push the contained value, while an Err will push nil and an error message.

Also changes the required trait for the error to Display instead of Debug, which is more suitable for user-facing errors.

Closes #125

tomaka commented 7 years ago

Thanks. R+, will merge when CI passes.