Merge pull request #672 from asuessenbach/errorMessage

Slightly improve two error messages.
This commit is contained in:
Andreas Süßenbach 2020-07-14 08:53:35 +02:00 committed by GitHub
commit 46aa4e0e95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4543,8 +4543,8 @@ void VulkanHppGenerator::checkCorrectness()
[&enumValue]( auto const & evd ) { return enumValue == evd.vulkanValue; } ) != [&enumValue]( auto const & evd ) { return enumValue == evd.vulkanValue; } ) !=
enumIt->second.values.end(), enumIt->second.values.end(),
member.xmlLine, member.xmlLine,
"value <" + enumValue + "> for structure member <" + member.name + "> of enum type <" + "value <" + enumValue + "> for member <" + member.name + "> in structure <" + structure.first +
member.type.type + "> not listed" ); " of enum type <" + member.type.type + "> not listed" );
} }
// special handling for sType: no value should appear more than once // special handling for sType: no value should appear more than once
if ( member.name == "sType" ) if ( member.name == "sType" )
@ -4563,8 +4563,8 @@ void VulkanHppGenerator::checkCorrectness()
{ {
check( value.find_first_not_of( "0123456789" ) == std::string::npos, check( value.find_first_not_of( "0123456789" ) == std::string::npos,
member.xmlLine, member.xmlLine,
"value <" + value + "> for struct member <" + member.name + "> of type <" + member.type.type + "value <" + value + "> for member <" + member.name + "> in structure <" + structure.first +
"> in structure <" + structure.first + "> is not a number" ); "> of type <" + member.type.type + "> is not a number" );
} }
} }
else else