mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
chore: log exception when parsing weapon attachment json fails
This commit is contained in:
parent
939f5b310f
commit
774da9a584
@ -44,8 +44,17 @@ namespace
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto jAttachment = jRoot.get<JsonWeaponAttachment>();
|
try
|
||||||
return CreateWeaponAttachmentFromJson(jAttachment, attachment);
|
{
|
||||||
|
const auto jAttachment = jRoot.get<JsonWeaponAttachment>();
|
||||||
|
return CreateWeaponAttachmentFromJson(jAttachment, attachment);
|
||||||
|
}
|
||||||
|
catch (const json::exception& e)
|
||||||
|
{
|
||||||
|
std::cerr << std::format("Failed to parse json of attachment: {}\n", e.what());
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user