Skip to content

Commit

Permalink
fix: error log
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxiaocs7 committed Aug 1, 2023
1 parent 549ca82 commit ed5d5e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private void checkIdFields(VertexLabel vertexLabel, List<String> fields) {
} else if (vertexLabel.idStrategy().isPrimaryKey()) {
E.checkArgument(fields.size() >= 1,
"The source/target field must contains some " +
"columns when id strategy is CUSTOMIZE");
"columns when id strategy is PrimaryKey");
} else {
throw new IllegalArgumentException("Unsupported AUTOMATIC id strategy " +
"for hugegraph-loader");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ public void extractFromEdge(String[] names, Object[] values,
}
List<String> primaryKeys = this.vertexLabel.primaryKeys();
E.checkArgument(ListUtils.isEqualList(this.pkNames, primaryKeys),
"Make sure the the primary key fields %s are " +
"Make sure the primary key fields %s are " +
"not empty, or check whether the headers or " +
"field_mapping are configured correctly",
primaryKeys);
Expand Down Expand Up @@ -617,7 +617,7 @@ public void extractFromEdge(String[] names, Object[] values,
this.pkName = mapping().mappingField(fieldName);
String primaryKey = primaryKeys.get(0);
E.checkArgument(this.pkName.equals(primaryKey),
"Make sure the the primary key field '%s' is " +
"Make sure the primary key field '%s' is " +
"not empty, or check whether the headers or " +
"field_mapping are configured correctly",
primaryKey);
Expand Down

0 comments on commit ed5d5e1

Please sign in to comment.