More information for EA-48954

This commit is contained in:
Nikolay Krasko
2014-05-21 14:52:22 +04:00
parent 34a9d9e91d
commit 84fb54fcdb
@@ -435,7 +435,8 @@ public class ResolveSession implements KotlinCodeAnalyzer {
}
}, null);
if (result == null) {
throw new IllegalStateException("No descriptor resolved for " + declaration + " " + declaration.getText());
throw new IllegalStateException("No descriptor resolved for " + declaration + ":\n" +
JetPsiUtil.getElementTextWithContext(declaration));
}
return result;
}