Skip to content

Commit 9a16d53

Browse files
committed
fix status return
1 parent d9d322b commit 9a16d53

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bindings/cpp/src/dynamic_vamana_index.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,9 @@ Status DynamicVamanaIndex::check_storage_kind(StorageKind storage_kind) noexcept
135135
}
136136
return supported ? Status_Ok
137137
: Status(
138-
ErrorCode::NOT_IMPLEMENTED,
139-
"Requested storage kind is not supported by CPU"
138+
ErrorCode::INVALID_ARGUMENT,
139+
"The specified storage kind is not compatible with the "
140+
"DynamicVamanaIndex"
140141
);
141142
}
142143

0 commit comments

Comments
 (0)