Skip to main content

lua_error

Function lua_error 

Source
pub fn lua_error(state: &mut LuaState, msg: &[u8]) -> Result<usize, LuaError>
Expand description

Format a runtime error with source location and raise it. Always returns Err.

Callers pass a pre-formatted &[u8] message; use format_args! at the call site rather than varargs.