Minor, print more debug info on serializing error annotation
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ class AnnotationSerializer(private val stringTable: StringTable) {
|
|||||||
val annotationClass = annotation.type.constructor.declarationDescriptor as? ClassDescriptor
|
val annotationClass = annotation.type.constructor.declarationDescriptor as? ClassDescriptor
|
||||||
?: error("Annotation type is not a class: ${annotation.type}")
|
?: error("Annotation type is not a class: ${annotation.type}")
|
||||||
if (ErrorUtils.isError(annotationClass)) {
|
if (ErrorUtils.isError(annotationClass)) {
|
||||||
error("Unresolved annotation type: ${annotation.type}")
|
error("Unresolved annotation type: ${annotation.type} at ${annotation.source.containingFile}")
|
||||||
}
|
}
|
||||||
|
|
||||||
id = stringTable.getFqNameIndex(annotationClass)
|
id = stringTable.getFqNameIndex(annotationClass)
|
||||||
|
|||||||
Reference in New Issue
Block a user