use a beammp_lua_errorf instead of a std::terminate on sol2 assertion failure

This commit is contained in:
Lion Kortlepel
2022-12-19 11:52:22 +01:00
parent 7316dff519
commit 59503ccc90
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ int BeamMPServerMain(MainArguments Arguments) {
Application::Console().WriteRaw(fmt::format("BeamMP Server v{} ({})", Application::ServerVersionString(), BEAMMP_GIT_HASH));
return 0;
}
std::string ConfigPath = "ServerConfig.toml";
if (Parser.FoundArgument({ "config" })) {
auto MaybeConfigPath = Parser.GetValueOfArgument({ "config" });