Catch EVERYTHING, even the shit we don't know about.

This commit is contained in:
ThePhD 2016-03-03 03:16:59 -05:00
parent e06b939d73
commit 22f74a31a2

View File

@ -123,7 +123,9 @@ private:
return protected_function_result(lua_state(), firstreturn, 0, 1, call_status::runtime);
}
catch (...) {
throw;
onexcept("caught (...) unknown error during protected_function call");
firstreturn = lua_gettop(lua_state());
return protected_function_result(lua_state(), firstreturn, 0, 1, call_status::runtime);
}
#endif // No Exceptions
return protected_function_result(lua_state(), firstreturn + ( handlerpushed ? 0 : 1 ), returncount, returncount, code);