diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/AnnotationResolver.java b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/AnnotationResolver.java index 67eca3be4a7..0d2eb250234 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/AnnotationResolver.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/AnnotationResolver.java @@ -406,7 +406,8 @@ public class AnnotationResolver { for (JetAnnotationEntry annotation : annotations) { AnnotationDescriptor annotationDescriptor = trace.get(BindingContext.ANNOTATION, annotation); if (annotationDescriptor == null) { - throw new IllegalStateException("Annotation for annotation should have been resolved: " + annotation); + throw new IllegalStateException("Annotation for annotation should have been resolved: \n" + + JetPsiUtil.getElementTextWithContext(annotation)); } result.add(annotationDescriptor);