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
+6 -2
View File
@@ -65,7 +65,9 @@ void TLuaEngine::operator()() {
} }
} }
if (Res->Error) { if (Res->Error) {
beammp_lua_error(Res->Function + ": " + Res->ErrorMessage); if (Res->ErrorMessage != BeamMPFnNotFoundError) {
beammp_lua_error(Res->Function + ": " + Res->ErrorMessage);
}
} }
} }
} }
@@ -140,7 +142,9 @@ 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) {
beammp_lua_error(Result->Function + ": " + Result->ErrorMessage); if (Result->ErrorMessage != BeamMPFnNotFoundError) {
beammp_lua_error(Result->Function + ": " + Result->ErrorMessage);
}
} }
} }
} }