Minor, print more debug info on serializing error annotation

This commit is contained in:
Alexander Udalov
2016-10-27 14:27:52 +03:00
parent 0ef5f662ad
commit 9e9c548ca3
@@ -29,7 +29,7 @@ class AnnotationSerializer(private val stringTable: StringTable) {
val annotationClass = annotation.type.constructor.declarationDescriptor as? ClassDescriptor
?: error("Annotation type is not a class: ${annotation.type}")
if (ErrorUtils.isError(annotationClass)) {
error("Unresolved annotation type: ${annotation.type}")
error("Unresolved annotation type: ${annotation.type} at ${annotation.source.containingFile}")
}
id = stringTable.getFqNameIndex(annotationClass)