Minor: show existing modules in absent error in gradle tests

This commit is contained in:
Nikolay Krasko
2020-05-13 16:45:40 +03:00
parent 189a9dbc02
commit e2857a910b
@@ -59,7 +59,7 @@ class ProjectInfo(
fun module(name: String, body: ModuleInfo.() -> Unit = {}) {
val module = moduleManager.findModuleByName(name)
if (module == null) {
messageCollector.report("No module found: '$name'")
messageCollector.report("No module found: '$name' in ${moduleManager.modules.map { it.name }}")
return
}
val moduleInfo = ModuleInfo(module, this)