mirror of
https://github.com/mlua-rs/mlua
synced 2026-06-08 16:05:43 +00:00
Fix several bugs with error handling in xxx_with_traceback functions
In resume_with_traceback, always use the coroutine stack for error handling so we don't miss panics, in both _with_traceback functions remove the temporary traceback entry from the stack.
This commit is contained in:
+1
-1
@@ -858,7 +858,7 @@ impl<'lua> Thread<'lua> {
|
||||
}
|
||||
|
||||
handle_error(
|
||||
lua.state,
|
||||
thread_state,
|
||||
resume_with_traceback(thread_state, lua.state, nargs),
|
||||
)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user