mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 08:28:57 +08:00
fix wrong error message (#7972)
This commit is contained in:
parent
0f72a8e89d
commit
15791510c8
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user