diff options
Diffstat (limited to 'plugins/base')
-rw-r--r-- | plugins/base/src/main/kotlin/parsers/moduleAndPackage/parseModuleAndPackageDocumentationFragments.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/parsers/moduleAndPackage/parseModuleAndPackageDocumentationFragments.kt b/plugins/base/src/main/kotlin/parsers/moduleAndPackage/parseModuleAndPackageDocumentationFragments.kt index d193ec0a..ea88e6e5 100644 --- a/plugins/base/src/main/kotlin/parsers/moduleAndPackage/parseModuleAndPackageDocumentationFragments.kt +++ b/plugins/base/src/main/kotlin/parsers/moduleAndPackage/parseModuleAndPackageDocumentationFragments.kt @@ -29,7 +29,10 @@ private fun parseModuleAndPackageDocFragment( val classifier = when (classifierAndName[0].trim()) { "Module" -> Module "Package" -> Package - else -> throw IllegalStateException("Unexpected classifier ${classifierAndName[0]}") + else -> throw IllegalStateException( + """Unexpected classifier ${classifierAndName[0]}, expected either "Module" or "Package". + |For more information consult the specification: https://kotlinlang.org/docs/reference/kotlin-doc.html#module-and-package-documentation""".trimMargin() + ) } if (classifierAndName.size != 2 && classifier == Module) { |