From 9d74561a6014ac99a78f8ca62ab1eaa9572a71a1 Mon Sep 17 00:00:00 2001 From: HartLi <463644535@qq.com> Date: Thu, 11 Dec 2025 23:31:19 +0800 Subject: [PATCH] Fix typo in error message for collection existence Signed-off-by: HartLi <463644535@qq.com> --- .../org/springframework/ai/chroma/vectorstore/ChromaApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector-stores/spring-ai-chroma-store/src/main/java/org/springframework/ai/chroma/vectorstore/ChromaApi.java b/vector-stores/spring-ai-chroma-store/src/main/java/org/springframework/ai/chroma/vectorstore/ChromaApi.java index 7f55ab62d4a..ba39726b442 100644 --- a/vector-stores/spring-ai-chroma-store/src/main/java/org/springframework/ai/chroma/vectorstore/ChromaApi.java +++ b/vector-stores/spring-ai-chroma-store/src/main/java/org/springframework/ai/chroma/vectorstore/ChromaApi.java @@ -228,7 +228,7 @@ public Collection getCollection(String tenantName, String databaseName, String c } catch (HttpServerErrorException | HttpClientErrorException e) { String msg = this.getErrorMessage(e); - if (String.format("Collection [%s] does not exists", collectionName).equals(msg)) { + if (String.format("Collection [%s] does not exist", collectionName).equals(msg)) { return null; } throw new RuntimeException(msg, e);