Skip to content

Commit 6a39685

Browse files
committed
Revert to previous error messages
1 parent 0049965 commit 6a39685

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/org/neo4j/gds/core/loading/ReadHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static double extractValue(AnyValue value, double defaultValue) {
7676

7777
public static double extractValue(Aggregation aggregation, AnyValue value, double defaultValue) {
7878
// slightly different logic than org.neo4j.values.storable.Values#coerceToDouble
79-
// b/c we want to fallback to the default value if the value is empty
79+
// b/c we want to fall back to the default value if the value is empty
8080
if (value instanceof NumberValue) {
8181
double propertyValue = ((NumberValue) value).doubleValue();
8282
return aggregation.normalizePropertyValue(propertyValue);
@@ -89,7 +89,7 @@ public static double extractValue(Aggregation aggregation, AnyValue value, doubl
8989
// Do we want to do so or is failing on non numeric properties ok?
9090
throw new IllegalArgumentException(formatWithLocale(
9191
"Unsupported type [%s] of value %s. Please use a numeric property.",
92-
value.getTypeName(),
92+
value.valueRepresentation().valueGroup(),
9393
value
9494
));
9595
}

0 commit comments

Comments
 (0)