Skip to content

Commit cd3747f

Browse files
committed
small QoL improvement to the value/type check of DataColumnImpl
1 parent 5e01d86 commit cd3747f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/columns/DataColumnImpl.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import org.jetbrains.kotlinx.dataframe.DataColumn
55
import org.jetbrains.kotlinx.dataframe.api.dataFrameOf
66
import org.jetbrains.kotlinx.dataframe.impl.isArray
77
import org.jetbrains.kotlinx.dataframe.impl.isPrimitiveArray
8+
import org.jetbrains.kotlinx.dataframe.kind
89
import kotlin.reflect.KClass
910
import kotlin.reflect.KType
1011
import kotlin.reflect.full.isSubclassOf
@@ -37,7 +38,7 @@ internal abstract class DataColumnImpl<T>(
3738
if (BuildConfig.DEBUG) {
3839
require(values.all { it matches type }) {
3940
val types = values.map { if (it == null) "Nothing?" else it!!::class.simpleName }.distinct()
40-
"Values of column '$name' have types '$types' which are not compatible given with column type '$type'"
41+
"Values of $kind '$name' have types '$types' which are not compatible given with column type '$type'"
4142
}
4243
}
4344
}

0 commit comments

Comments
 (0)