KT-MR-5666 Model mapping: throw clearer error for non-MPP projects

This commit is contained in:
Sergey Igushkin
2022-02-08 20:30:43 +04:00
committed by Space
parent a37217809f
commit f3606cdd9e
@@ -26,7 +26,7 @@ interface SourceSetMappedFragmentLocator {
companion object {
fun get(project: Project): SourceSetMappedFragmentLocator = when (project.topLevelExtensionOrNull) {
is KotlinMultiplatformExtension -> MultiplatformSourceSetMappedFragmentLocator()
is KotlinSingleTargetExtension -> TODO()
is KotlinSingleTargetExtension -> error("KPM model mapping is not yet supported in single-platform projects; tried to apply to $project")
else -> error("couldn't provide model mapping utilities for project $project")
}
}