Ignore BEAMMP_FN_NOT_FOUND errors

This commit is contained in:
Lion Kortlepel
2021-10-01 04:09:40 +02:00
parent d1f890752a
commit 1ee45c9d1a
+4
View File
@@ -65,10 +65,12 @@ void TLuaEngine::operator()() {
} }
} }
if (Res->Error) { if (Res->Error) {
if (Res->ErrorMessage != BeamMPFnNotFoundError) {
beammp_lua_error(Res->Function + ": " + Res->ErrorMessage); beammp_lua_error(Res->Function + ": " + Res->ErrorMessage);
} }
} }
} }
}
}); });
// event loop // event loop
auto Before = std::chrono::high_resolution_clock::now(); auto Before = std::chrono::high_resolution_clock::now();
@@ -140,9 +142,11 @@ void TLuaEngine::WaitForAll(std::vector<std::shared_ptr<TLuaResult>>& Results) {
std::this_thread::sleep_for(std::chrono::milliseconds(10)); std::this_thread::sleep_for(std::chrono::milliseconds(10));
} }
if (Result->Error) { if (Result->Error) {
if (Result->ErrorMessage != BeamMPFnNotFoundError) {
beammp_lua_error(Result->Function + ": " + Result->ErrorMessage); beammp_lua_error(Result->Function + ": " + Result->ErrorMessage);
} }
} }
}
} }
// run this on the error checking thread // run this on the error checking thread