Minor: include descriptor itself in exception from DependenciesCollector

This commit is contained in:
Dmitry Petrov
2018-02-05 17:39:22 +03:00
parent 4776535205
commit 22d59bb709
@@ -63,7 +63,7 @@ class DependenciesCollector {
return when (containingDeclaration) {
is PackageFragmentDescriptor -> descriptor
is ClassDescriptor -> getTopLevelDeclaration(containingDeclaration)
else -> throw AssertionError("Package or class expected: $containingDeclaration")
else -> throw AssertionError("Package or class expected: $containingDeclaration; for $descriptor")
}
}