Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

Commit fa6ad89

Browse files
committed
Fixed an issue with config file saving.
1 parent 491b030 commit fa6ad89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tf2_bot_detector/Config/ConfigHelpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ auto tf2_bot_detector::GetConfigFilePaths(const std::string_view& basename) -> C
5858

5959
static void SaveJSONToFile(const std::filesystem::path& filename, const nlohmann::json& json)
6060
{
61-
IFilesystem::Get().WriteFile(filename, json.dump(1, '\t', true) << '\n');
61+
IFilesystem::Get().WriteFile(filename, json.dump(1, '\t', true, nlohmann::detail::error_handler_t::ignore) << '\n');
6262
}
6363

6464
static ConfigSchemaInfo LoadAndValidateSchema(const ConfigFileBase& config, const nlohmann::json& json)

0 commit comments

Comments
 (0)