From fa6ad89b84cb94df4fc81b83d00794d02eecd494 Mon Sep 17 00:00:00 2001 From: Matt Haynie Date: Wed, 6 Jan 2021 16:10:38 -0800 Subject: [PATCH] Fixed an issue with config file saving. --- tf2_bot_detector/Config/ConfigHelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tf2_bot_detector/Config/ConfigHelpers.cpp b/tf2_bot_detector/Config/ConfigHelpers.cpp index 90c6cd45..3718790c 100644 --- a/tf2_bot_detector/Config/ConfigHelpers.cpp +++ b/tf2_bot_detector/Config/ConfigHelpers.cpp @@ -58,7 +58,7 @@ auto tf2_bot_detector::GetConfigFilePaths(const std::string_view& basename) -> C static void SaveJSONToFile(const std::filesystem::path& filename, const nlohmann::json& json) { - IFilesystem::Get().WriteFile(filename, json.dump(1, '\t', true) << '\n'); + IFilesystem::Get().WriteFile(filename, json.dump(1, '\t', true, nlohmann::detail::error_handler_t::ignore) << '\n'); } static ConfigSchemaInfo LoadAndValidateSchema(const ConfigFileBase& config, const nlohmann::json& json)