Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Update error message for agent name conflict (#4299)

liuhua7c7b7d268927
diff --git a/api/apps/canvas_app.py b/api/apps/canvas_app.py
index 76426f4173..8dcbb254cd 100644
--- a/api/apps/canvas_app.py
+++ b/api/apps/canvas_app.py
@@ -65,7 +65,7 @@ def save():
req["dsl"] = json.loads(req["dsl"])
if "id" not in req:
if UserCanvasService.query(user_id=current_user.id, title=req["title"].strip()):
- return get_data_error_result(f"{req['title'].strip()} already exists.")
+ return get_data_error_result(message=f"{req['title'].strip()} already exists.")
req["id"] = get_uuid()
if not UserCanvasService.save(**req):
return get_data_error_result(message="Fail to save canvas.")