Report message with context for KT-4464

This commit is contained in:
Nikolay Krasko
2014-04-14 18:13:11 +04:00
parent 5e138a606b
commit 37c6727413
@@ -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);