Fix calling toString() on ProtoContainer

This commit is contained in:
Pavel V. Talanov
2014-11-27 18:03:27 +03:00
parent f0a9c4f683
commit bd575c39dd
2 changed files with 11 additions and 2 deletions
@@ -92,7 +92,7 @@ public abstract class AbstractBinaryClassAnnotationAndConstantLoader<A : Any, C
): List<A> {
val kotlinClass = findClassWithAnnotationsAndInitializers(container, proto, nameResolver, kind)
if (kotlinClass == null) {
errorReporter.reportLoadingError("Kotlin class for loading member annotations is not found: $container", null)
errorReporter.reportLoadingError("Kotlin class for loading member annotations is not found: ${container.getFqName(nameResolver)}", null)
return listOf()
}
@@ -127,7 +127,7 @@ public abstract class AbstractBinaryClassAnnotationAndConstantLoader<A : Any, C
val kotlinClass = findClassWithAnnotationsAndInitializers(container, proto, nameResolver, kind)
if (kotlinClass == null) {
errorReporter.reportLoadingError("Kotlin class for loading property constant is not found: $container", null)
errorReporter.reportLoadingError("Kotlin class for loading property constant is not found: ${container.getFqName(nameResolver)}", null)
return null
}