KPM: print fragment names in the error from illegal refines(...) calls

This commit is contained in:
Sergey Igushkin
2022-02-01 00:41:49 +04:00
committed by Space
parent e237072a68
commit 43f7d0fe95
@@ -70,7 +70,9 @@ open class KotlinGradleFragmentInternal @Inject constructor(
}
private fun checkCanRefine(other: KotlinGradleFragment) {
check(containingModule == other.containingModule) { "Fragments can only refine each other within one module." }
check(containingModule == other.containingModule) {
"Fragments can only refine each other within one module. Can't make $this refine $other"
}
}
override fun dependencies(configure: KotlinDependencyHandler.() -> Unit): Unit =