Skip to content

Commit 152e718

Browse files
Hart-Lispring-builds
authored andcommitted
Fix typo in error message for collection existence (#5080)
Signed-off-by: HartLi <[email protected]> (cherry picked from commit a3a5f54)
1 parent 02b2f2e commit 152e718

File tree

1 file changed

+1
-1
lines changed
  • vector-stores/spring-ai-chroma-store/src/main/java/org/springframework/ai/chroma/vectorstore

1 file changed

+1
-1
lines changed

vector-stores/spring-ai-chroma-store/src/main/java/org/springframework/ai/chroma/vectorstore/ChromaApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public Collection getCollection(String tenantName, String databaseName, String c
228228
}
229229
catch (HttpServerErrorException | HttpClientErrorException e) {
230230
String msg = this.getErrorMessage(e);
231-
if (String.format("Collection [%s] does not exists", collectionName).equals(msg)) {
231+
if (String.format("Collection [%s] does not exist", collectionName).equals(msg)) {
232232
return null;
233233
}
234234
throw new RuntimeException(msg, e);

0 commit comments

Comments
 (0)