From 7ab9715b0edc1f73480aa5bb452e698b91997e7f Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Wed, 13 Nov 2024 16:20:59 +0800 Subject: [PATCH] refine the error message (#3382) ### What problem does this PR solve? ### Type of change - [x] Refactoring --- api/apps/canvas_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/apps/canvas_app.py b/api/apps/canvas_app.py index 260017bc3..6ef41c5e9 100644 --- a/api/apps/canvas_app.py +++ b/api/apps/canvas_app.py @@ -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