mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-28 04:07:01 -05:00
Add classname to stracktrace when Kotlin remapping fails. Closes #1045
This commit is contained in:
@@ -57,7 +57,11 @@ class KotlinMetadataRemappingClassVisitor(private val remapper: Remapper, next:
|
||||
var result: AnnotationVisitor? = super.visitAnnotation(descriptor, visible)
|
||||
|
||||
if (descriptor == ANNOTATION_DESCRIPTOR && result != null) {
|
||||
result = KotlinClassMetadataRemappingAnnotationVisitor(remapper, result, className)
|
||||
try {
|
||||
result = KotlinClassMetadataRemappingAnnotationVisitor(remapper, result, className)
|
||||
} catch (e: Exception) {
|
||||
throw RuntimeException("Failed to remap Kotlin metadata annotation in class $className", e)
|
||||
}
|
||||
}
|
||||
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user