build scripts: mention missing module names in error message

This commit is contained in:
nik
2016-09-07 16:49:17 +03:00
parent 639c12f5d9
commit 70b16329fd
@@ -327,14 +327,14 @@ idea.fatal.error.notification=disabled
private void checkModules(Collection<String> modules, String fieldName) {
def unknownModules = modules.findAll {buildContext.findModule(it) == null}
if (!unknownModules.empty) {
buildContext.messages.error("The following modules from $fieldName aren't found in the project.")
buildContext.messages.error("The following modules from $fieldName aren't found in the project: $unknownModules")
}
}
private void checkProjectLibraries(Collection<String> names, String fieldName) {
def unknownLibraries = names.findAll {buildContext.project.libraryCollection.findLibrary(it) == null}
if (!unknownLibraries.empty) {
buildContext.messages.error("The following libraries from $fieldName aren't found in the project.")
buildContext.messages.error("The following libraries from $fieldName aren't found in the project: $unknownLibraries")
}
}