Skip to content

Commit

Permalink
fix wrong error message (#7972)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnJyong authored Sep 4, 2024
1 parent 0f72a8e commit 1579151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/controllers/service_api/dataset/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def post(self, tenant_id, dataset_id, document_id):
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
Expand Down

0 comments on commit 1579151

Please sign in to comment.