Add stack trace logging for EA-225969

This commit is contained in:
Yan Zhulanow
2020-03-03 15:00:11 +09:00
parent c1b57e8681
commit 36f3ff7d20
@@ -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)
}
}