mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 06:38:59 +08:00
refine the error message (#3382)
### What problem does this PR solve? ### Type of change - [x] Refactoring
This commit is contained in:
parent
632b23486f
commit
7ab9715b0e
@ -119,10 +119,10 @@ def run():
|
||||
except Exception as e:
|
||||
return server_error_response(e)
|
||||
|
||||
assert answer is not None, "Nothing. Is it over?"
|
||||
assert answer is not None, "The dialog flow has no way to interact with you. Please add an 'Interact' component to the end of the flow."
|
||||
|
||||
if stream:
|
||||
assert isinstance(answer, partial), "Nothing. Is it over?"
|
||||
assert isinstance(answer, partial), "The dialog flow has no way to interact with you. Please add an 'Interact' component to the end of the flow."
|
||||
|
||||
def sse():
|
||||
nonlocal answer, cvs
|
||||
|
Loading…
x
Reference in New Issue
Block a user