diff --git a/platform/lang-impl/src/com/intellij/openapi/module/impl/ModuleManagerImpl.java b/platform/lang-impl/src/com/intellij/openapi/module/impl/ModuleManagerImpl.java
index aa8b407972a6..214863e04f1a 100644
--- a/platform/lang-impl/src/com/intellij/openapi/module/impl/ModuleManagerImpl.java
+++ b/platform/lang-impl/src/com/intellij/openapi/module/impl/ModuleManagerImpl.java
@@ -272,15 +272,16 @@ public class ModuleManagerImpl extends ModuleManager implements ProjectComponent
if (!app.isHeadlessEnvironment() && !modulesWithUnknownTypes.isEmpty()) {
String message;
if (modulesWithUnknownTypes.size() == 1) {
- message = ProjectBundle.message("module.unknown.type.single.error", modulesWithUnknownTypes.get(0).getName());
+ message = ProjectBundle.message("module.unknown.type.single.error", modulesWithUnknownTypes.get(0).getName(),
+ modulesWithUnknownTypes.get(0).getModuleType().getId());
}
else {
StringBuilder modulesBuilder = new StringBuilder();
for (final Module module : modulesWithUnknownTypes) {
- modulesBuilder.append("\n\"");
- modulesBuilder.append(module.getName());
- modulesBuilder.append("\"");
+ modulesBuilder.append("
\"");
+ modulesBuilder.append(module.getName()).append("\" (type '").append(module.getModuleType().getId()).append("')");
}
+ modulesBuilder.append("
");
message = ProjectBundle.message("module.unknown.type.multiple.error", modulesBuilder.toString());
}
// it is not modal warning at all
diff --git a/platform/platform-resources-en/src/messages/ProjectBundle.properties b/platform/platform-resources-en/src/messages/ProjectBundle.properties
index fb4f6f4e9645..2f24cad05654 100644
--- a/platform/platform-resources-en/src/messages/ProjectBundle.properties
+++ b/platform/platform-resources-en/src/messages/ProjectBundle.properties
@@ -250,7 +250,7 @@ module.source.roots.not.configured.title=No Source Roots Configured
module.cannot.load.error=Cannot load module file ''{0}'':\n{1}
module.corrupted.file.error=Invalid or corrupted module file ''{0}'':\n{1}
module.corrupted.data.error=Corrupted module data at: {0}
-module.unknown.type.single.error=Cannot determine module type for the following module:\n\"{0}\"\nThe module will be treated as a Unknown module.
+module.unknown.type.single.error=Cannot determine module type (\"{1}\") for the following module:\"{0}\"
The module will be treated as a Unknown module.
module.unknown.type.multiple.error=Cannot determine module type for the following modules:\n{0}\nAll mentioned modules will be treated as Unknown modules.
module.unknown.type.title=Unknown Module Type
module.web.title=Web Module