mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
chore: log exception when parsing weapon camo json fails
This commit is contained in:
parent
774da9a584
commit
0707fa5873
@ -39,9 +39,18 @@ namespace
|
||||
return false;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
const auto jWeaponCamo = jRoot.get<JsonWeaponCamo>();
|
||||
return CreateWeaponCamoFromJson(jWeaponCamo, weaponCamo);
|
||||
}
|
||||
catch (const json::exception& e)
|
||||
{
|
||||
std::cerr << std::format("Failed to parse json of weapon camo: {}\n", e.what());
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private:
|
||||
static void PrintError(const WeaponCamo& weaponCamo, const std::string& message)
|
||||
|
Loading…
x
Reference in New Issue
Block a user