From 36f3ff7d204eb677d0c31b21df22b32ef6aacf48 Mon Sep 17 00:00:00 2001 From: Yan Zhulanow Date: Tue, 3 Mar 2020 15:00:11 +0900 Subject: [PATCH] Add stack trace logging for EA-225969 --- .../kotlin/idea/caches/resolve/KotlinCacheServiceImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/KotlinCacheServiceImpl.kt b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/KotlinCacheServiceImpl.kt index bb6de03c253..df8f427b1d7 100644 --- a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/KotlinCacheServiceImpl.kt +++ b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/KotlinCacheServiceImpl.kt @@ -127,7 +127,7 @@ class KotlinCacheServiceImpl(val project: Project) : KotlinCacheService { it.containingKtFile ?: throw IllegalStateException("containingKtFile was null for $it of ${it.javaClass}") } catch (e: Exception) { if (e is ControlFlowException) throw e - throw KotlinExceptionWithAttachments("Couldn't get containingKtFile for ktElement") + throw KotlinExceptionWithAttachments("Couldn't get containingKtFile for ktElement", e) .withAttachment("element.kt", it.text) } }