Merge pull request #6465 from aws-lumberyard-dev/scripting/catalog_load

Code maintenance, improved OnCatalogLoaded logic and track additions …
This commit is contained in:
Luis Sempé
2021-12-22 09:50:57 -08:00
committed by GitHub
4 changed files with 30 additions and 40 deletions
@@ -24,11 +24,12 @@ namespace GraphCanvas
}
else
{
const AZStd::string& existingValue = translationDbItr->second;
[[maybe_unused]] const AZStd::string& existingValue = translationDbItr->second;
// There is a name collision
const AZStd::string error = AZStd::string::format("Unable to store key: %s with value: %s because that key already exists with value: %s (proposed: %s)", baseKey.c_str(), it.GetString(), existingValue.c_str(), it.GetString());
AZ_Error("TranslationSerializer", false, error.c_str());
AZ_Error("TranslationSerializer", existingValue == it.GetString(),
R"(Unable to store key: "%s" with value: "%s" because that key already exists with value: "%s" (proposed: "%s"))",
baseKey.c_str(), it.GetString(), existingValue.c_str(), it.GetString());
}
}
else if (it.IsObject())