Don't silently accept entrypoint=""

svn path=/trunk/; revision=27388
This commit is contained in:
Thomas Bluemel 2007-07-04 15:27:32 +00:00
parent c0ed3a362f
commit 2e3fcb5dd9

View file

@ -339,6 +339,14 @@ Module::Module ( const Project& project,
att = moduleNode.GetAttribute ( "entrypoint", false );
if ( att != NULL )
{
if ( att->value == "" )
{
throw InvalidAttributeValueException (
moduleNode.location,
"entrypoint",
att->value );
}
entrypoint = att->value;
isDefaultEntryPoint = false;
}