Let rbuild throw an exception when an implicit module dependency (like mingw lib) cannot be resolved instead of silently failing.

svn path=/trunk/; revision=38118
This commit is contained in:
Timo Kreuzer 2008-12-16 15:51:55 +00:00
parent 2521c1979a
commit 7d2ae2011e

View file

@ -1454,6 +1454,14 @@ Library::Library ( const Module& _module,
name(_name),
importedModule(_module.project.LocateModule(_name))
{
if ( !importedModule )
{
throw XMLInvalidBuildFileException (
"<internal>",
"module '%s' trying to import non-existant module '%s'",
module.name.c_str(),
name.c_str() );
}
}
void