Skip to content

Commit 0ddd9d4

Browse files
authored
[BTS-2267] Improve vector index error message (#22143)
* Improve vector index error message * Change fields to attribute
1 parent 36a1197 commit 0ddd9d4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

arangod/Indexes/IndexFactory.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -925,9 +925,10 @@ Result IndexFactory::enhanceJsonIndexVector(
925925
if (auto const res = velocypack::deserializeWithStatus(
926926
paramsSlice, vectorIndexDefinition);
927927
!res.ok()) {
928-
return Result(
929-
TRI_ERROR_BAD_PARAMETER,
930-
std::format("error: {}, path: {}", res.error(), res.path()));
928+
return {TRI_ERROR_BAD_PARAMETER,
929+
std::format("Error with parsing the `params` attribute in "
930+
"vector index definition: {}",
931+
res.error())};
931932
}
932933

933934
if (definition.get("unique").isTrue()) {

0 commit comments

Comments
 (0)