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

Commit

Permalink
Fixed an issue with config file saving.
Browse files Browse the repository at this point in the history
  • Loading branch information
PazerOP committed Jan 7, 2021
1 parent 491b030 commit fa6ad89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tf2_bot_detector/Config/ConfigHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fa6ad89

Please sign in to comment.