Fix error not getting popped

This commit is contained in:
William Venner 2022-01-04 21:56:09 +00:00
parent 3ae39ac3b3
commit 09cded3b38
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@ impl LuaState {
self.get_global(crate::lua_string!("ErrorNoHaltWithStack")); self.get_global(crate::lua_string!("ErrorNoHaltWithStack"));
if self.is_nil(-1) { if self.is_nil(-1) {
eprintln!("[ERROR] {:?}", self.get_string(-2)); eprintln!("[ERROR] {:?}", self.get_string(-2));
self.pop_n(2);
return false; return false;
} }
self.push_value(-2); self.push_value(-2);