Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix wrong error message (#7972)

Jyong15791510c883
diff --git a/api/controllers/service_api/dataset/segment.py b/api/controllers/service_api/dataset/segment.py
index 570af339bd9..e69db29fdce 100644
--- a/api/controllers/service_api/dataset/segment.py
+++ b/api/controllers/service_api/dataset/segment.py
@@ -37,7 +37,7 @@ class SegmentApi(DatasetApiResource):
if not document:
raise NotFound("Document not found.")
if document.indexing_status != "completed":
- raise NotFound("Document is already completed.")
+ raise NotFound("Document is not completed.")
if not document.enabled:
raise NotFound("Document is disabled.")
# check embedding model setting