ResolutionFacadeWithDebugInfo: do not wrap index not ready exception

Fixes problems where `catch (IndexNotReadyException)` blocks
    in IDEA code would not work
This commit is contained in:
Pavel V. Talanov
2018-10-10 17:10:14 +02:00
parent aab28e6cc7
commit 8be3e902a8
@@ -94,7 +94,7 @@ private class ResolutionFacadeWithDebugInfo(
try {
return body()
} catch (e: Throwable) {
if (e is ControlFlowException) {
if (e is ControlFlowException || e is IndexNotReadyException) {
throw e
}
throw KotlinIdeaResolutionException(e, resolvingWhat(), creationPlace)