Browse Source

fix wrong error message (#7972)

Jyong 11 tháng trước cách đây
mục cha
commit
15791510c8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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:
             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