소스 검색

fix wrong error message (#7972)

Jyong 10 달 전
부모
커밋
15791510c8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      api/controllers/service_api/dataset/segment.py

+ 1 - 1
api/controllers/service_api/dataset/segment.py

@@ -37,7 +37,7 @@ class SegmentApi(DatasetApiResource):
         if not document:
         if not document:
             raise NotFound("Document not found.")
             raise NotFound("Document not found.")
         if document.indexing_status != "completed":
         if document.indexing_status != "completed":
-            raise NotFound("Document is already completed.")
+            raise NotFound("Document is not completed.")
         if not document.enabled:
         if not document.enabled:
             raise NotFound("Document is disabled.")
             raise NotFound("Document is disabled.")
         # check embedding model setting
         # check embedding model setting