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") } }