From acb8546583fe30a656d74975878498a6e36329a7 Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Sat, 4 Jul 2020 00:40:47 +0300 Subject: [PATCH] FIR IDE: fix ReadOnlyWeakRef error message --- .../kotlin/idea/frontend/api/fir/utils/ReadOnlyWeakRef.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/utils/ReadOnlyWeakRef.kt b/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/utils/ReadOnlyWeakRef.kt index c1e2ab6a316..8e1aa177930 100644 --- a/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/utils/ReadOnlyWeakRef.kt +++ b/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/utils/ReadOnlyWeakRef.kt @@ -15,9 +15,9 @@ class ReadOnlyWeakRef(value: V, val validityOwner: ValidityOwner) { @Suppress("NOTHING_TO_INLINE") inline operator fun getValue(thisRef: Any, property: KProperty<*>): V = weakRef.get() ?: if (validityOwner.isValid()) { - error("Cone type was garbage collected while analysis session is still valid") + error("Value of $property was garbage collected while analysis session is still valid") } else { - error("Accessing the invalid coneType") + error("Accessing the invalid value of $property") } }