mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Reduced exception on encountering an unknown element to a warning.
This commit is contained in:
parent
a1f8fb13cd
commit
0d65f6a142
@ -210,7 +210,7 @@ void checkElements(int line, std::vector<tinyxml2::XMLElement const*> const& ele
|
||||
{
|
||||
std::string value = e->Value();
|
||||
encountered[value]++;
|
||||
check((required.find(value) != required.end()) || (optional.find(value) != optional.end()), e->GetLineNum(), "unknown element <" + value + ">");
|
||||
warn((required.find(value) != required.end()) || (optional.find(value) != optional.end()), e->GetLineNum(), "unknown element <" + value + ">");
|
||||
}
|
||||
for (auto const& r : required)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user