diff options
Diffstat (limited to 'src/util.rs')
-rw-r--r-- | src/util.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/util.rs b/src/util.rs index 2cc56ed..d731df6 100644 --- a/src/util.rs +++ b/src/util.rs @@ -501,10 +501,7 @@ pub unsafe fn push_wrapped_error(state: *mut ffi::lua_State, err: Error) { Ok(1) } else { - Err(Error::FromLuaConversionError( - "internal error: userdata mismatch in Error metamethod" - .to_owned(), - )) + panic!("internal error: userdata mismatch in Error metamethod"); }) } |