From 7d2ae2011e3ac9a9760cf6d44e8299cc4b6a21f0 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Tue, 16 Dec 2008 15:51:55 +0000 Subject: [PATCH] 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 --- reactos/tools/rbuild/module.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reactos/tools/rbuild/module.cpp b/reactos/tools/rbuild/module.cpp index c38af44fe8b..8766f8bc110 100644 --- a/reactos/tools/rbuild/module.cpp +++ b/reactos/tools/rbuild/module.cpp @@ -1454,6 +1454,14 @@ Library::Library ( const Module& _module, name(_name), importedModule(_module.project.LocateModule(_name)) { + if ( !importedModule ) + { + throw XMLInvalidBuildFileException ( + "", + "module '%s' trying to import non-existant module '%s'", + module.name.c_str(), + name.c_str() ); + } } void