Skip to content

Commit ea374c1

Browse files
kere-nelKeren Fuentes
andauthored
Improving error message (#5444)
* better error fix * revisions Co-authored-by: Keren Fuentes <[email protected]>
1 parent f5aa7da commit ea374c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.ML.Data/Transforms/ColumnConcatenatingEstimator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ private SchemaShape.Column CheckInputsAndMakeColumn(
116116
}
117117
if (!col.ItemType.Equals(itemType))
118118
{
119-
throw _host.Except($"Column '{sources[i]}' has values of {col.ItemType}, " +
120-
$"which is not the same as earlier observed type of {itemType}.");
119+
throw _host.Except($"Concatenated columns should have the same type. Column '{sources[i]}' has type of {col.ItemType}, " +
120+
$"but expected column type is {itemType}.");
121121
}
122122
varVector |= col.Kind == SchemaShape.Column.VectorKind.VariableVector;
123123
isNormalized &= col.IsNormalized();

0 commit comments

Comments
 (0)